checked on 26 Nov 2026
valid until 25 May 2027not rechecked since 25 May 2027
Safari and Chrome on Android do not fire unload on going to another page in the same tab, and pagehide has the same reliability problems, so visibilitychange should be used.
In the source's words
The `pagehide` event is not as problematic as `unload`, because it is compatible with the bfcache. However, it suffers from the same reliability problems. Developers should use `visibilitychange` instead.
Address
stacks.jakubdudek.com/small-web-text-discovery-app/c75
In a document: [[small-web-text-discovery-app#c75]]
JSON