5 ms·
I find the page visibility API, supported by every browser including Firefox, just as creepy. Perhaps even more, since most users don't know it exists and gave
by pteraspidomorph 5y ago
I find the page visibility API, supported by every browser including Firefox, just as creepy. Perhaps even more, since most users don't know it exists and gave no permission for it to operate. Websites have no business knowing if I'm looking at them or not, and making assumptions about what I want them to do when I'm not.
https://developer.mozilla.org/en-US/docs/Web/API/Page_Visibility_API https://developer.mozilla.org/en-US/docs/Web/API/Page_Visibi...
- kevingadd 5y agoInterestingly, this API is one of the tools Youtube uses to stop you from playing videos in the background on mobile.
- mrsalt 5y agoHere's an old thread about this: https://news.ycombinator.com/item?id=21244440 https://news.ycombinator.com/item?id=21244440 It's obvious when you the Page Visibility API original editors/authors: https://www.w3.org/TR/page-visibility-2/ https://www.w3.org/TR/page-visibility-2/