You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered: