Page visibility state
Limited availability
The visibility-state
performance entry and the VisibilityStateEntry
API measure the timing of page visibility state changes, such as when a tab is no longer visible or the user has switched to another app.
Learning resources on MDN
Browser support
- Chrome 115 Released on 2023-07-18
- Chrome Android 115 Released on 2023-07-21
- Edge 115 Released on 2023-07-21
- Firefox ❌ See bugzil.la/1827127
- Firefox for Android ❌ See bugzil.la/1827127
- Safari ❌ See webkit.org/b/255200
- Safari on iOS ❌ See webkit.org/b/255200
Specifications
- HTML Standard (#the-visibilitystateentry-interface), from HTML Workstream (WHATWG).