Google uses new techniques to speed up Javascript load times in latest Chrome release

Google uses new techniques to speed up Javascript load times in latest Chrome release

Always obsessed with speed, Google shared today that it has improved the way Chrome loads Javascript files in the latest version of Chrome, now loading at the same time as beginning to parse them.

Script streaming in Chrome 41 allows the browser to process asynchronous and deferred scripts as soon as the download of those files begins, not after it’s completed. Previously, the browser would download and then parse the files step by step.

This improvement means that pages can load up to 10 percent faster than previously.

streaming

Code caching is also used in Chrome 42 to help speed up sites you frequently visit. Google says that traditionally, the browser compiles a page’s Javascript on every visit, but the new build of Chrome stores a local copy of compiled code for execution on frequently visited sites.

Google touts this technique as saving up to 40 percent of compile time and reducing battery drain on mobile devices, which is great news for everybody.

New JavaScript techniques for rapid page load [Chromium Blog]

Featured image: Alexander Supertramp / Shutterstock.com

Read next: Want to build a DIY Star Wars-themed drone? These people have

Shh. Here's some distraction

Comments