Code caching for JavaScript developers · V8
v8.dev · 2,964 words · saved by 1 readers
(Byte)code caching reduces the start-up time of commonly visited websites by caching the result of JavaScript parsing + compilation.
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 popular browsers implement some form of code caching, and Chrome is no exception. Indeed, we’ve written and talked 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
related reading
- workbox-precaching | Modules | Chrome for Developersdeveloper.chrome.com
- A very concrete explanation of how a cache worksparksb.github.io
- JavaScript Loading Priorities in Chromeaddyosmani.com
- What is Memoization? How and When to Memoize in JavaScript and Reactfreecodecamp.org
- Speculation in JavaScriptCore | WebKitwebkit.org
- Getting Started: Caching | Next.jsnextjs.org
- Speeding Up the Webcola Graph Viz Library with Rust + WebAssembly - Casey Primozic's Homepagecprimozic.net
- KV Caching Explained: Optimizing Transformer Inference Efficiencyhuggingface.co
- Populating the page: how browsers work - Performance | MDNdeveloper.mozilla.org
- Your options for preloading images with JavaScript | Alex MacArthurmacarthur.me
- CoffeeScriptcoffeescript.org
- Cache and Prizes - Infrequently Notedinfrequently.org