Do you ever wonder if background tabs/windows are using battery power, or precious CPU time? Using the Page Visibility API, we can detect when users aren’t viewing/interacting with our website to help them save precious computing resources!

The Page Visibility API was introduced in 2011, and includes several features that were added to the Document object…

#js #javascript

How to Detect Idle Browser Tabs with the Page Visibility API
2.00 GEEK