Open paolobarbolini opened 5 years ago
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.
I think this is not the accusation of this tool, you can achieve it on your own project.
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.