The party is ON! Join us at TNW Conference 2021 in Amsterdam for face-to-face business!

The heart of tech

This article was published on March 18, 2015

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
Owen Williams
Story by

Owen Williams

Former TNW employee

Owen was a reporter for TNW based in Amsterdam, now a full-time freelance writer and consultant helping technology companies make their word Owen was a reporter for TNW based in Amsterdam, now a full-time freelance writer and consultant helping technology companies make their words friendlier. In his spare time he codes, writes newsletters and cycles around the city.

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