Intercepts all JS-based tab-switch detection before the page loads — Page Visibility API, blur/focus events, hasFocus(), and more.
-
Updated
Apr 22, 2026 - HTML
Intercepts all JS-based tab-switch detection before the page loads — Page Visibility API, blur/focus events, hasFocus(), and more.
Add a description, image, and links to the page-visibility-api topic page so that developers can more easily learn about it.
To associate your repository with the page-visibility-api topic, visit your repo's landing page and select "manage topics."