Advertisement

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.

Advertisement

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!

Support us

Winaero greatly relies on your support. You can help the site keep bringing you interesting and useful content and software by using these options:

If you like this article, please share it using the buttons below. It won't take a lot from you, but it will help us grow. Thanks for your support!

Advertisment

Author: Sergey Tkachenko

Sergey Tkachenko is a software developer who started Winaero back in 2011. On this blog, Sergey is writing about everything connected to Microsoft, Windows and popular software. Follow him on Telegram, Twitter, and YouTube.

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

  1. Hi Sergey,

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

Leave a Reply

Your email address will not be published.

css.php
Using Telegram? Subscribe to the blog channel!
Hello. Add your message here.