logoalt Hacker News

xnxtoday at 9:07 AM2 repliesview on HN

This will be a positive if browsers (extensions?) allow the ability to spoof visibility by site. Most websites have no business knowing if they're in the foreground or background.


Replies

madeofpalktoday at 10:07 AM

Nice - you’ve just increased significantly power consumption of your browser!

Browsers will “slow down” various aspects of pages when they’re not visible, like animations or timers, to save on battery usage on laptops or phones.

Even if your remove explicit APIs for backgrounding, pages can still use heuristics to detect anyway.

show 1 reply
touwertoday at 9:21 AM

That's actually quite easy. onBlur, etc

show 1 reply