Rudxain (talk | contribs)
m wanted: JS; link framework
JodyBruchonFan (talk | contribs)
visibilitychange event: legitimately used for autosave
Line 46: Line 46:
=== visibilitychange event ===
=== visibilitychange event ===
Chrome was the first web browser to implement the "visibilitychange" JavaScript event. This can be used by websites to detect switching to a different tab and, for example, block background playback like the mobile website of YouTube does.<ref>[https://developer.mozilla.org/en-US/docs/Web/API/Document/visibilitychange_event Document: visibilitychange event - Web APIs &#x7C; MDN] ([http://web.archive.org/web/20260112100508/https://developer.mozilla.org/en-US/docs/Web/API/Document/visibilitychange_event Archived])</ref> On Firefox, extensions can block this detection.<ref>[https://addons.mozilla.org/en-US/firefox/addon/video-background-play-fix/ Video Background Play Fix – Get this Extension for 🦊 Firefox (en-US)] ([http://web.archive.org/web/20260118202048/https://addons.mozilla.org/en-US/firefox/addon/video-background-play-fix/ Archived])</ref>
Chrome was the first web browser to implement the "visibilitychange" JavaScript event. This can be used by websites to detect switching to a different tab and, for example, block background playback like the mobile website of YouTube does.<ref>[https://developer.mozilla.org/en-US/docs/Web/API/Document/visibilitychange_event Document: visibilitychange event - Web APIs &#x7C; MDN] ([http://web.archive.org/web/20260112100508/https://developer.mozilla.org/en-US/docs/Web/API/Document/visibilitychange_event Archived])</ref> On Firefox, extensions can block this detection.<ref>[https://addons.mozilla.org/en-US/firefox/addon/video-background-play-fix/ Video Background Play Fix – Get this Extension for 🦊 Firefox (en-US)] ([http://web.archive.org/web/20260118202048/https://addons.mozilla.org/en-US/firefox/addon/video-background-play-fix/ Archived])</ref>
The visibilitychange event has some legitimate uses such as automatically saving draft posts on an online message board.<ref>[https://xenforo.com/community/threads/message-auto-save-drafts.27665/ Message Auto Save / Drafts &#x7C; XenForo community]</ref>


=== Google account requirement to download extensions ===
=== Google account requirement to download extensions ===