It’s no news that Microsoft is doing Google Chrome a lot of good. Since the company abandoned its own engine and adopted Chromium For the development of Edge, Google’s OpenSource engine is receiving a lot of news and improvements of all kinds. And one of the last, which we will be able to enjoy very soon, is Code Caching.
How Microsoft will speed up the loading of Google Chrome
Modern web browsers use considerably large scripts on their internal WebUI pages. These scripts are loaded and run through the browser’s V8 engine. Repeating this task over and over again is an unnecessary waste of time.
Thanks to this new function, Google Chrome (and Edge too) what they will do is serialize the processed script so that the information generated by it is cached. This way, when this script needs to be reloaded, Chrome will send the serialized byte code to Blink, who will decide whether to load the previously generated information, or re-process the script from scratch.
In this way, by being able to load this information from the Chrome cache instead of processing it from scratch, the loading time is significantly reduced when opening a new tab, or when users browse the internal pages of the browser (the that start with chrome: //).
According to Microsoft, thanks to this feature both Edge and Chrome should notice a time reduction of between 11% and 20%.
How to test this new feature
At the moment, this new function is in an experimental phase, so it is disabled by default in all versions of the browser, even in the branch Canary. To activate it, what we must do is open the properties window of the direct access (recommended the latest Canary version of the browser), and in the “destination” section add the following parameter:
If it gives problems, just close the browser, delete this parameter and reopen it so that it works normally again.
Google Chrome 92 also improves the cache for some users
But the above feature isn’t the only performance improvement coming to Google Chrome. The current version of Chrome, 92, is randomly testing a new feature called «back-forward cache«.
This new function has been available in Android for a long time, and what allows us is to be able to go back or forward almost instantaneously thanks to the fact that, when changing web using the history or the forward or back buttons, the web does not load zero, but the copy of the cache saved on the PC.
At the moment we do not know when this function will reach all users. Google is only testing it on a very select group of users. But, if we want, we can activate it through the following flag in Chrome 92 (Canary is not necessary):