DEV Community

Discussion on: Page Visibility API, let's help users save their battery life and data πŸ˜€

Collapse
 
mazentouati profile image
Mazen Touati • Edited

Indeed, this feature is powerful and may be used for good deeds. However, I hate it very much (I mean from user point of view) because now companies like Facebook use it to force users watch Ads or live videos. Others may try to be smart and decide what to pause and what to not pause which may lead to unwanted results. Sometimes, I'm fine with videos playing in the background it may be a music video or a talk show or whatever. Also, one big downside is that it does not work well with multi-monitors setup. When I focus in another monitor the hidden event will be fired which is very annoying. At least, users should be allowed to decide whether they enable it or not within the web app setting.

Collapse
 
yashints profile image
Yaser Adel Mehraban

All valid points, but as developers, we have the choice of using this for good or to annoy users.

With great power comes great responsibility 😊

Collapse
 
mazentouati profile image
Mazen Touati

Yes, another double edge weapon πŸ˜€

Collapse
 
frandall profile image
Andry Kurniawan

Well thanks, for sharing this, by knowing this feature, at least we as a developer can make script to help protect user against those evil ^