How can I get Chrome to stop killing my tabs in the background?

How can I get Chrome to stop killing my tabs in the background?



I have a chat page open at https://app.purechat.com/quick-links and after a few hours, I come back to the page and Chrome reloads it because it has killed it in the background. The app thinks that I am offline and I am not getting chat notifications. How can I stop Chrome from killing the tab it is loaded in? I have 32GB.





Chrome is not killing your tab, its hibernating it, to consume memory. See also: developers.google.com/web/updates/2015/09/tab-discarding
– LPChip
Aug 30 at 21:12





@3D1T0R OK I pinned it. But then it moves it to the far left, while I normally keep my development environment on tab CTRL+1 and the chat in CTRL+4.
– Chloe
Aug 30 at 21:14


CTRL+1


CTRL+4





@LPChip: According to that page Chrome is killing it: "What do we mean by discarding? ... We kill it but it's still visible on the Chrome tab strip." however it also points to a solution for @​Chloe: "A new page called chrome://discards lets you list what tabs are currently open and we try to share some insight into how interesting (we think) they are to you, from most to least." From that description it may not seem like a solution, but going to there in current versions of Chrome gives me a list of tabs it might discard, and offers a "toggle" option to prevent discarding certain tabs.
– 3D1T0R
Aug 30 at 21:23





@3D1T0R Isn't it obvious that 32GB refers to RAM? The asker is surely saying, "I have plenty of RAM so Chrome doesn't need to junk this tab to save memory." 32GB of disc space would be pretty much irrelevant.
– David Richerby
Aug 30 at 23:05





@DavidRicherby: Yes & No. It's obvious to someone who knows computers inside and out that that's what it should be referring to, but those of us answering questions on SE sites don't necessarily know how much experience with computers an asker has, and there's a chance (for all I know) that @​Chloe is using a netbook with a 32GB SSD and is saying "I have 32GB." because they bought "the 32GB model" of that particular netbook & didn't realize that it has very little RAM. (Note: I'm not saying that's the case, but without clarification from the OP, we don't actually know.)
– 3D1T0R
Aug 30 at 23:35




2 Answers
2



To stop Chrome from reloading pages when you return to them after they have been in the background:


chrome://flags/



You may also want to set the "Offline Auto-Reload Mode" flag to "Disabled".



If you don't want to disable Automatic tab discarding for all the tabs, alternatively, you also have the option to discard select tabs manually via chrome://discards.


chrome://discards



On that page, if you have automatic tab discarding still enabled, you can click "Toggle" next to any tab to prevent it from being discarded automatically.



Pinning the tab will also prevent it from being automatically discarded, however, the pinned tab is moved to the far left which may be unacceptable behavior (particularly for those who use keyboard shortcuts to navigate through their first few tabs). Pinned tabs are also smaller than regular tabs.



References:



https://developers.google.com/web/updates/2015/09/tab-discarding
https://www.guidingtech.com/stop-chrome-reloading-tabs-automatically-switching/
https://www.makeuseof.com/tag/10-hidden-chrome-settings-changing/





Can you add the bit about chrome://discards and the Auto Discardable Toggle link? No one wants to disable the feature for all the tabs.
– Chloe
Aug 30 at 22:16



chrome://discards


Auto Discardable Toggle





I have now added that information. Thanks.
– jlevis
Aug 30 at 23:09





Regarding Option 1, I do not have that chrome flag on my chrome://flags page. Any idea why? I am on Chrome 68.
– Gaurang Tandon
Aug 31 at 3:37





Regarding the third option, do Ctrl+1 etc. work for switching to pinned tabs?
– deltab
Aug 31 at 5:53






Does Chrome also discard "tabs" that are opened in a custom window (as done with Menu > More tools > Create shortcut... > Check "Open as Window"? It would explain why Discord is not creating any notifications anymore for me after having that window minimized for some time.
– Ray Koopa
Aug 31 at 8:08



Menu > More tools > Create shortcut... > Check "Open as Window"



I was able to go to chrome://discards/ from the link in the comments and toggle a setting on the tab to prevent it from being killed.


chrome://discards/



enter image description here





Does this persist after exiting and reopening Chrome? or do you have to toggle it each time you launch Chrome?
– 3D1T0R
Aug 30 at 22:19





@3D1T0R On my version of chrome (68.0.3440.106 - 64-bit) across a relaunch (from the flags page's "Relaunch" button) the toggle did not stay disabled
– Taelsin
Aug 31 at 14:27






Then you may be better off just pinning the tab, as that persists to the next time you launch Chrome (as long as you don't close the window it's pinned in prior to exiting Chrome, e.g. close that window last, or use Menu > Exit or Ctrl+Shift+Q to quit).
– 3D1T0R
Aug 31 at 16:34






This doesn't actually work. Even when toggled off, it still discards the tab.
– Chloe
Sep 6 at 17:25



Thanks for contributing an answer to Super User!



But avoid



To learn more, see our tips on writing great answers.



Some of your past answers have not been well-received, and you're in danger of being blocked from answering.



Please pay close attention to the following guidance:



But avoid



To learn more, see our tips on writing great answers.



Required, but never shown



Required, but never shown






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

𛂒𛀶,𛀽𛀑𛂀𛃧𛂓𛀙𛃆𛃑𛃷𛂟𛁡𛀢𛀟𛁤𛂽𛁕𛁪𛂟𛂯,𛁞𛂧𛀴𛁄𛁠𛁼𛂿𛀤 𛂘,𛁺𛂾𛃭𛃭𛃵𛀺,𛂣𛃍𛂖𛃶 𛀸𛃀𛂖𛁶𛁏𛁚 𛂢𛂞 𛁰𛂆𛀔,𛁸𛀽𛁓𛃋𛂇𛃧𛀧𛃣𛂐𛃇,𛂂𛃻𛃲𛁬𛃞𛀧𛃃𛀅 𛂭𛁠𛁡𛃇𛀷𛃓𛁥,𛁙𛁘𛁞𛃸𛁸𛃣𛁜,𛂛,𛃿,𛁯𛂘𛂌𛃛𛁱𛃌𛂈𛂇 𛁊𛃲,𛀕𛃴𛀜 𛀶𛂆𛀶𛃟𛂉𛀣,𛂐𛁞𛁾 𛁷𛂑𛁳𛂯𛀬𛃅,𛃶𛁼

How do I collapse sections of code in Visual Studio Code for Windows?

Node.js puppeteer - Use values from array in a loop to cycle through pages