Chrome JavaScript throttling experiment improves Battery significantly
#1
Information 
Quote:
[Image: chrome-throttle-javascript-timers-battery.png]

Web browsers uses a lot of battery when they are run on mobile devices such as laptops. While it helps to use content blockers and other extensions to remove or block elements that may draw additional power, it is still problematic from a user perspective.

Google has run experiments in the past couple of months in its Chrome web browser to find out if the throttling of JavaScript in background tabs has an effect on the battery usage of the web browser.

Chromium engineers decided to analyze "the work done by popular sites in the background" and determined that "a lot of work was done from JavaScript timers"at were not "valuable to the user" often.

The idea was born to reduce the number of wake ups from JavaScript timers in background tabs in the web browser to find out if that would improve battery life.
Currently, JavaScript wake ups are limited to 1 wake up per second in stable versions of the Chrome web browser.

Google ran several experiments to determine if the throttling of JavaScript wake ups would improve battery life. Here are the results:

Experiment 1: 36 popular sites in background tabs, about:blank in foreground.
  • Current status: Median time to discharge 6.4 hours
  • Throttled status: Median time to discharge 8.2 hours
Experiment 2: 36 background tabs, YouTube in foreground
  • Current status: Median time to discharge 4.7 hours
  • Throttled status: Median time to discharge 5.3 hours
A new Chrome experimental flag is available to enable the feature in development versions of the Chrome we browser (Canary).
  • Name: Throttle Javascript timers in background.
  • Description: When enabled, wake ups from DOM Timers are limited to 1 per minute in a page that has been hidden for 5 minutes.
Here is how to enable the experiment:
  1. Load chrome://flags in the web browser's address bar.
  2. Search for Throttle Javascript timers in background.
  3. Set the flag to Enabled.
  4. Restart the browser.
Google Chrome will limit JavaScript timers of background pages after the restart automatically; this is applied to pages that have been in the background for at least five minutes.

The feature may be introduced in Chrome 86 on the desktop (currently Canary).

Google plans to introduce an Enterprise policy to disable the intervention. The idea behind the policy is to provide administrators with an option to turn the functionality off if they notice that it breaks functionality.

Tests will be run to find out if the feature will break certain features on sites.

Other Chromium-based browsers such as Microsoft Edge, Brave, Vivaldi, or Opera, will get the feature as well unless the developers of the browsers deactivate it actively. It is very likely that Mozilla will implement this also in the Firefox web browser in the future.

Battery life improvements are always welcome, especially if a small change extends the battery life by a lot.

Now You:  Is battery life of concern to you?

...
Continue Reading
[-] The following 1 user says Thank You to harlan4096 for this post:
  • silversurfer
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)
[-]
Welcome
You have to register before you can post on our site.

Username/Email:


Password:





[-]
Recent Posts
VMware Workstation Pro 17.6.4
VMware Workstation...harlan4096 — 10:22
VirtualBox 7.1.12
VirtualBox 7.1.12​...harlan4096 — 08:15
Google Chrome 138.0.7204.157/.158
Google Chrome 138....harlan4096 — 08:14
RThunderbird for Android 11.0
Thunderbird for An...harlan4096 — 08:12
Google Chrome 138 point update fixes ano...
Google released th...harlan4096 — 08:11

[-]
Birthdays
Today's Birthdays
No birthdays today.
Upcoming Birthdays
avatar (42)lapedDow
avatar (48)rituabew
avatar (36)omyjul
avatar (40)papedDow
avatar (49)ArnoldFum
avatar (37)yfaza
avatar (48)Kevensi
avatar (38)boineDon
avatar (39)Grompelbawn
avatar (40)vkseogaF
avatar (36)usogy
avatar (39)ywixazok
avatar (37)ixoqe
avatar (35)pa.OpenTran

[-]
Online Staff
There are no staff members currently online.

>