Forum Moderators: open
Google Chrome's New Javascript Techniques Help Speed Page Loading
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. Google Chrome's New Javascript Techniques Help Speed Page Loading [blog.chromium.org]
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.
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. Across all page loads, this allows Chrome to avoid about 40% of compile time and saves precious battery on mobile devices.
... this allows Chrome to avoid about 40% of compile time and saves precious battery on mobile devices.
So Google is saving a few bucks on their own bandwidth by delivering the goods only once ... nice.