Answer the question
In order to leave comments, you need to log in
How to unfreeze Google Chrome background tabs?
If you switch the active chrome tab, then the previous tab is "frozen", the scripts there start to run slowly.
How to win it?
In google answers by type, turn off the freeze and discarding flag, but now there is no freeze flag in chrome, only discarding.
What is needed is the full execution of scripts in the background tab, as in the active one, and not rewriting the code through web workers.
Or, if possible, how to prevent the right tab from freezing with chrome.
chrome://flags/#expensive-background-timer-throttling in disable doesn't help either.
Tab pinning doesn't help
Version 85.0.4183.121 (Official build), (64 bit)
Answer the question
In order to leave comments, you need to log in
Second browser.
You can fox or also chrome, since there are a lot of them.
Right-click on the tab title. Menu item Pin or Pin tab (something like that). The tab will move to the left corner of the browser and will be pinned permanently. These tabs don't freeze for me. However, it may depend on other factors as well.
You can disable tab freezing using the Chrome API .
Create an empty extension and place the following handlers in background.js :
chrome.tabs.onCreated.addListener(function(tab) {
chrome.tabs.update(tab.id, {
autoDiscardable: false
});
});
chrome.tabs.onReplaced.addListener(function(tabId) {
chrome.tabs.update(tabId, {
autoDiscardable: false
});
});
chrome.runtime.onInstalled.addListener(function(details) {
chrome.tabs.query({}, function(tabs) {
tabs.forEach(function(tab) {
chrome.tabs.update(tab.id, {
autoDiscardable: false
});
});
});
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question