Enable Throttle JavaScript Timers in Edge and Chrome to Reduce CPU Load

How to Enable Throttle JavaScript Timers in Edge and Chrome to Reduce CPU Load

Chromium, the open source project that is used in both Google Chrome and Microsoft Edge browsers, has got a new feature that allows throttling JavaScript timers in the background. This setting, when enabled, significantly reduces CPU load and extends the device's battery life.

Both Edge and Chrome come with the new option that you can enable.

Once enabled, the Throttle JavaScript Timers option will improve the device's performance by decreasing CPU load and, due to that, battery power consumption. It can save up to 30% of battery for users who keep many tabs open in the browser.

So, what exactly does this option do? It suspends JavaScript timers for tabs opened in the background (inactive) tabs not used by you for 5 minutes or more. For such tabs, timers will be allowed to execute their code only once per minute.

Let's review how to activate it in Google Chrome and Microsoft Edge. Both browsers have this option in their Canary channels as of this writing, so you need to install their Canary versions to give it a try.

To Enable Throttle JavaScript Timers in Microsoft Edge,

  1. Open Microsoft Edge.
  2. Type the following in the address bar: edge://flags/#intensive-wake-up-throttling.
  3. Select Enabled next to the Throttle Javascript timers in background option.Edge Enable Throttle Javascript Timers In Background
  4. Restart the browser when prompted.

You are done! Now, you can try to open websites that have plenty of JavaScript code running in the background, and see if the browser has stopped consuming CPU resources after 5 minutes of being in the background for those tabs.

The same can be done in Google Chrome. Again, the steps below I am doing in its Canary version.

To Enable Throttle JavaScript Timers in Google Chrome,

  1. Open Google Chrome.
  2. Type the following in the address bar: chrome://flags/#intensive-wake-up-throttling.
  3. Set the flag to Enabled by selecting the appropriate value from the Throttle Javascript timers in background drop-down.Chrome Enable Throttle Javascript Timers In Background
  4. Restart the browser when prompted.

You are done!

2 thoughts on “Enable Throttle JavaScript Timers in Edge and Chrome to Reduce CPU Load

  1. Shyam Reddy

    Hi Sergey,

    Don’t see the same in Vivaldi. I guess stable does not have chromium with this setting.

    Reply
    1. Sergey Tkachenko Post author

      yep, I don’t see either. It is in Canary only.

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *