- Sep 20, 2021
It is in the news that Microsoft is working in collaboration with Google, and this will eventually bring a new feature to Google Chrome. As per a few news sources, Microsoft is currently working on a new feature for Google Chrome. The new feature will aim at increasing the loading speed of Chrome’s internal web pages across Windows, Linux, macOS and other desktop platforms. Furthermore, the company also revealed in the new Chromium code submission that the developers at Microsoft are also working on a new code cache for scripts obtained through the chrome://protocol.
Although Microsoft does have an option that will speed up its browser Edge, there is no such option in Google Chrome. The updates over the years have indeed sped up the browser loading process, but obviously, there has been some lack in this regard which propelled Microsoft to take up this issue.
The ‘how’ of this process seems intricate. In a browser, after the script is loaded and executed, the V8 can be serialized into the interpreter bytecode which is also generated by the script itself. However, if Blink orders the V8 to run the same script again and get the previously serialized bytecode, what V8 does, in this case, is to sidestep the initial parsing step. Eventually, this makes the script run faster. This is the most important stage when it comes to webpage loading time.
Chrome and other browsers based on Chromium come with large scripts in WebUI pages. The same WebUI pages are used in various common scenarios including a new tab page. After running its feature, Microsoft claimed that after they started using the new code cache, the time to draw the first content on the new tab page has been reduced by 11-20%.
Although this feature is available, it is disabled by default, Anyone interested in enabling this feature can do so by using the enable-features=WebUICodeCache command.