rNeomy / auto-tab-discard

Use native tab discarding method to automatically reduce memory usage of inactive tabs
https://webextension.org/listing/tab-discard.html
Mozilla Public License 2.0
906 stars 79 forks source link

[Feature Request] Suspend javascript on background tabs #281

Open lonix1 opened 2 years ago

lonix1 commented 2 years ago

Firefox now has built-in tab unloading. So all unused tabs will eventually be unloaded by Firefox itself.

But javascript runs for all tabs, even those in the background. It would be nice to have a new option to suspend background tabs' javascript.

In short: run javascript on current tab only.

SHHSSH commented 2 years ago

I'm not sure if my request would be relative to this but it seems it may be, so I will post here.

I am having such a hard time with tabs releasing their discard state merely due to having hovered/cycled through them with hotkeys Ctrl/Ctrl+Shift+Tab, I then constantly have to tediously discard each of these tabs manually, or make sure I am able to have all my wanted tabs "kept" while I discard all others.

I am wondering if at all possible for an option to only allow releasing of the discard state of a tab with a "click" on the tab's "window" section.

I could have sworn I'd seen this elsewhere, though it may have been through a chrome extension.

Please, please, consider this, it would be a godsend.

mxmilkiib commented 2 years ago

Aah I guess this is why about:performance says a number of tabs are still going up and down in Energy Impact even they are 'discarded'.