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

Feature Request: pause/start timer when the page visibility changes #51

Open
paolobarbolini opened this issue Aug 28, 2019 · 1 comment

Comments

@paolobarbolini
Copy link

The Page Visibility API is especially useful for saving resources and improving performance by letting a page avoid performing unnecessary tasks when the document isn't visible.

https://developer.mozilla.org/en-US/docs/Web/API/Page_Visibility_API

One of the unnecessary tasks which in many apps could be avoided is running a timer when the page isn't even visible.

I'm willing to send a pull request later if you are interested in having this in the library.

@masongzhi
Copy link
Contributor

I think this is not the accusation of this tool, you can achieve it on your own project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants