Categories: News

Chrome to Get Faster with New JavaScript Techniques

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.

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

Bohs Hansen

Disqus Comments Loading...

Recent Posts

Valve Confirms Initial Steam Deck Drops Still on Track for February

While originally scheduled to start shipping last month, Valve's upcoming Steam Deck was delayed until…

9 hours ago

AMD Prepares ‘RAMP’ – Their DDR5 XMP Memory Profile Solution?

I don't think it would be unfair of me to say that while AMD Ryzen…

9 hours ago

Tesla Cybertruck Now Delayed into 2023?!

Originally launched back in late 2019, the Tesla Cybertruck certainly grabbed a lot of attention…

9 hours ago

Genesis Launches the Irid 505 White ARGB PC Case

Genesis has announced the launch of its new Irid 505 White ARGB midi tower PC…

9 hours ago

Nvidia Delays the 3090 Ti Over Hardware/BIOS Issues?

Despite confirming the upcoming and long-rumoured 3090 Ti graphics card at their CES 2022 keynote…

9 hours ago

Sony Withdraws PS Now Cards Hinting Again at a New Subscription Service

While the Sony PS5 has undoubtedly proven to be the bigger winner in the current…

1 day ago