Chrome to Get Faster with New JavaScript Techniques




/ 9 years ago

Google-Chrome-Parental-Controls-Option

Chrome was built with speed as one of the primary missions since its start back in 2008 and now the coders have come up with the next thing to help make it even faster. Chrome is introducing two techniques called script streaming and code caching designed to reduce that painful waiting time spent staring at a white screen, especially on mobile devices.

The script streaming optimizes the parsing of JavaScript files where previous versions of Chrome would download a script in full before beginning to parse it, an inefficient way to deal with data. Starting in version 41, Chrome parses async and deferred scripts on a separate thread as soon as the download has begun. This means that parsing can complete just milliseconds after the download has finished, and results in pages loading as much as 10% faster. It’s particularly effective on large scripts and slow network connections.

streaming

Code caching is the second new technique that helps speed up page loading, specifically on repeated visits to the same page. Chrome 42 introduces an advanced technique of storing a local copy of the compiled code, so that when the user returns to the page the downloading, parsing, and compiling steps can all be skipped. This allows Chrome to avoid about 40% of compile time across all page loads.

Thanks to Chromium for providing us with this information


Topics: , , , , , ,

Support eTeknix.com

By supporting eTeknix, you help us grow and continue to bring you the latest newsreviews, and competitions. Follow us on FacebookTwitter and Instagram to keep up with the latest technology news, reviews and more. Share your favourite articles, chat with the team and more. Also check out eTeknix YouTube, where you'll find our latest video reviews, event coverage and features in 4K!

Looking for more exciting features on the latest technology? Check out our What We Know So Far section or our Fun Reads for some interesting original features.

eTeknix Facebook eTeknix Twitter eTeknix Instagram eTeknix Instagram
  • Be Social With eTeknix

    Facebook Twitter YouTube Instagram Reddit RSS Discord Patreon TikTok Twitch
  • Features


Send this to a friend
})