~/talk

SvelteJS Under the Hood

TalkinRussianat HolyJS 2020 Moscow · 2020-11-25..11-28· [javascript, web-performance]
links:none on file
slides:none on file

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

  1. 0:00Introduction
  2. 3:46Svelte runtime myths
  3. 7:19Svelte to JS compilation
  4. 13:22Virtual DOM alternative
  5. 23:03Why Svelte disappears
  6. 35:52Code optimization
  7. 45:28Svelte reactivity
  8. 54:24Async reactivity
  9. 1:04:58Svelte compiler
  10. 1:13:33Conclusion & Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.