2 ms·
> Imagine if js was throttled - or automatically disabled if a page was detected as being too resource-intensive? Google tried doing something in that directio
by ygra 10y ago
> Imagine if js was throttled - or automatically disabled if a page was detected as being too resource-intensive?
Google tried doing something in that direction, by not running functions registered with setTimeout in certain cases (a pattern that's supposedly often used by ads on a site, impacting load time), thereby breaking a whole lot of legitimate cases along the way.
- robmcm 10y agoOpera has just done something like this for it's low power mode: Reduced activity in background tabs Waking CPU less often due to more optimal scheduling of JavaScript timers Automatically pausing unused plug-ins Reduced frame rate to 30 frames per second Tuning video-playback parameters and forcing usage of hardware accelerated video codecs Paused animations of browser themes http://www.opera.com/blogs/desktop/2016/05/introducing-power-saving-mode/ http://www.opera.com/blogs/desktop/2016/05/introducing-power...