SvelteJS Under the Hood
summary
Describes how Svelte compiles .svelte files into a JavaScript class with generated functions (e.g., create_fragment) and only small per-need helper imports instead of a large runtime. Covers Svelte’s reactivity implementation—assignments are wrapped with an invalidate helper and updates are batched via a Promise microtask—and shows server rendering produces plain HTML. Quantifies the trade-off: larger generated code per component but far fewer runtime abstractions, smaller shipped helpers, and precise DOM patches that update only the changed keys.
AI-written summary · about
chapters (10)
- 0:00Introduction
- 3:46Svelte runtime myths
- 7:19Svelte to JS compilation
- 13:22Virtual DOM alternative
- 23:03Why Svelte disappears
- 35:52Code optimization
- 45:28Svelte reactivity
- 54:24Async reactivity
- 1:04:58Svelte compiler
- 1:13:33Conclusion & Q&A
related talks
24mSvelte: the last framework we need?
40mSvelte is Fast and Makes You Faster
38mLooking into the Svelte Compiler
40mSvelte, cybernetically enhanced web apps
38mBuild your own Svelte 5
08mWhy Svelte is the best framework for beginner and advanced developers alike
36mSvelte - Web App Development Reimagined
53mSvelte, cybernetically enhanced web apps
