checked on 26 Nov 2026
valid until 25 May 2027not rechecked since 25 May 2027
The visibilitychange event with the state hidden also fires when, on mobile, the user goes from the browser to another app or changes tab, and it is the last event the page can reliably observe (MDN, as of 26 November 2026).
In the source's words
Transitioning to `hidden` is the last event that's reliably observable by the page, so developers should treat it as the likely end of the user's session
Source
developer.mozilla.org/en-US/docs/Web/API/Document/visibilitychange_event · T1
Find the quote on the page
Address
stacks.jakubdudek.com/small-web-text-discovery-app/c73
In a document: [[small-web-text-discovery-app#c73]]
JSON