4 ms·
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 foregr
by xnx 9mo ago
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.
- touwer 9mo agoThat's actually quite easy. onBlur, etc
- reddalo 9mo agoJust to be precise, onBlur is a JavaScript event for an item that loses its focus, visibilitychange is what you actually need to detect tab changing.
- madeofpalk 9mo agoNice - 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.
- chii 9mo agoThe user should be making the choice - not the website. The website could be informed about being backgrounded, if the user chooses to. But the user should have the priority in the decision chain - their choice overrides any that the website makes. That is what it means to have control over your own computing.
- salawat 9mo ago>That is what it means to have control over your own computing. Ah, see, there's the problem. The corpo apologists in the room don't want you to have that. The hardware you bought; err, licensed; to them, is their playground.
- RandomTeaParty 9mo agoI mean... What's wrong with youtube tab consuming power "as if it's on screen" if it plays video? As an avid idle game player, I'm tired of opening games in different window and having main window not-fullscreen just for the game to play normally This "tab unloading" is great and all, but not giving us users any control to turn it off is awful
- Cytobit 9mo agoI could save even more power if I turn my computer off. I don't mind using power to use my computer.