Chrome is reducing power consumption by changing JavaScript timers in the background

In the desktop browser market, Google Chrome has occupied 70% of the market share, but in terms of memory consumption and power consumption, Google Chrome is on the top.

It is also true that Google Chrome has used various methods to limit memory usage and reduce power consumption in recent years. For example, Google has now come up with new ways to limit power consumption.

Google said in its official blog that the company is preparing to restrict JavaScript scripts, and by limiting some unnecessary scripts, it can be used to reduce memory usage.

Of course, under normal circumstances, JavaScript scripts are usually indispensable components of the web page. If the use of JavaScript scripts is restricted, the content of the web page may be abnormal.

According to Google, the scripts used to track visits and timers are all non-essential scripts. These scripts are restricted and usually do not affect the loading of the web page.

CVE-2018-6177

However, such scripts naturally have normal uses, so Google has not prepared a one-size-fits-all approach. Google’s idea is to restrict non-essential active scripts in the background tabs.

For example, after a tab is switched to the background and becomes inactive, Google Chrome will restrict its script to continue running to prevent continued power consumption in the background.

Google has tested and found that restricting such non-essential scripts can significantly improve battery life. This feature is currently being tested in the Google Chrome Canary version. Interested users can enable chrome://flags/#intensive-wake-up-throttling flag to see if it can really improve battery life.

Of course, this is not exclusive to Google Chrome. After all, Microsoft Edge also uses the Chromium kernel, so it is estimated that this feature will be followed up.

Via: ZDNet