Code caching (also known as bytecode caching) is an important optimization in browsers. It reduces the start-up time of commonly visited websites by caching the result of parsing + compilation. Most popularbrowsers implement some form of code caching, and Chrome is no exception. Indeed, we’ve written andtalked about how Chrome and V8 cache compiled code in the past.
In this blog post, we offer a few pieces of advice for JS developers who want to make the best use of code caching to improve the startup of their websites. This advice focuses on the implementation of caching in Chrome/V8, but most of it is likely transferable to other browsers’ code caching implementations too....
#javascript #web-development