V8 uses code caching to cache the generated code for frequently-used scripts. Starting with Chrome 66, we are caching more code by generating the cache after top-level execution. This leads to a 20–40% reduction in parse and compilation time during the initial load. Background #V8 uses two kinds of code caching to cache generated code to be reused later. The first is the in-memory cache that is av