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

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.

The <3 of EU tech

The latest rumblings from the EU tech scene, a story from our wise ol' founder Boris, and some questionable AI art. It's free, every week, in your inbox. Sign up now!

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

Get the TNW newsletter

Get the most important tech news in your inbox each week.

Also tagged with