Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sleep mode for inactive tabs #262

Open
Nomes77 opened this issue Nov 2, 2021 · 3 comments
Open

Sleep mode for inactive tabs #262

Nomes77 opened this issue Nov 2, 2021 · 3 comments
Labels
Component::Tabbar Tab or tabbar Issue::Enhancement New feature or request

Comments

@Nomes77
Copy link
Contributor

Nomes77 commented Nov 2, 2021

Is your feature request related to a problem?
Some sort of battery saver or sleep mode for in active tabs like Microsoft Edge has currently. To make the browser faster.

The solution I'd like
Some sort of battery saver or sleep mode for in active tabs like Microsoft Edge has currently.

Alternatives I've considered
None, becease add-ons like Auto Tab Discard discard tabs. This forces the browser to reload the discarded tabs which cost even more performance resources.

Additional context
#2 (comment)

* [ ]  Battery saver
@Nomes77 Nomes77 added the Issue::Enhancement New feature or request label Nov 2, 2021
@black7375
Copy link
Owner

black7375 commented Nov 2, 2021

I think the frame rate and animation control will probably have the biggest impact on the battery saver.
I'm investigating various other methods (Autoplay, Tab Lazy Load, JS Timer), but I'm not sure if it's possible to adjust the timer for specific tabs.

If we could implement an edge-like sleeping tab, it would be a killer feature.

@Nomes77
Copy link
Contributor Author

Nomes77 commented Nov 2, 2021

I don't know exactly the sleeping tab function in edge works, but maybe we can implement a feature that would disable running background JS on tabs which aren't used.

@black7375
Copy link
Owner

black7375 commented Nov 3, 2021

just ref for sleeping tabs

https://techcommunity.microsoft.com/t5/articles/sleeping-tabs-faq/m-p/1705434
How does the sleeping tabs technology work?

Sleeping tabs builds upon the core of Chromium’s “freezing” technology. Freezing pauses a tab’s script timers, minimizing CPU usage and frees up the operating system to reuse the memory for other open tabs, new tabs, or system applications.

One implementation method is to use Dev tools' stop button command. (breakOnNext, resume)
image

@black7375 black7375 added the Component::Tabbar Tab or tabbar label Nov 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component::Tabbar Tab or tabbar Issue::Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants