3 ms·
Firefox (and AFAIK Chrome too) has native APIs for unloading/suspending tabs. I use [1] auto tab discard to configure background tab unloading after a certain p
by kmarc 5y ago
Firefox (and AFAIK Chrome too) has native APIs for unloading/suspending tabs. I use
[1] auto tab discard to configure background tab unloading after a certain period of time. Works very well, battery usage reduced greatly.
[1]: https://addons.mozilla.org/en-US/firefox/addon/auto-tab-discard/ https://addons.mozilla.org/en-US/firefox/addon/auto-tab-disc...
- Arnavion 5y agoThe problem with "discard"ing tabs is that restoring the tab reloads it, leading to an annoying wait and also losing the state that it was in. Neither browser gives a way to just pause the JS analogous to a SIGSTOP, ie whatever next function the JS calls just blocks, or timer events stop being delivered, until an analogous SIGCONT.
- thatfunkymunki 5y agototally agree, I absolutely hate when I return to a tab and it has to reload, losing the entire reason I didn't close it in the first place.