~/talk

Vue.js Rendering mechanism

Talkat CityJS Athens 2023 · on Tuesday, 2023-05-30· [vue]
name:Ema Zyka
github:emazyka
slides:none on file

Explains how Vue compiles templates into render functions (build-time or runtime) that produce a virtual DOM, then mounts it via a creation pass and updates it via a patching process. Describes compiler optimizations: static hoisting of constant subtrees, collapsing consecutive static nodes into HTML strings, and tree flattening to keep only trackable children. Reveals use of numeric patchFlags: 64 and others embedded in generated code so the runtime skips full diffing and updates only known-changing parts.

AI-written summary · about

  1. 0:00Introduction
  2. 2:24Virtual DOM explained
  3. 5:32The render pipeline
  4. 9:03Compile-time optimizations
  5. 10:48Static hoisting
  6. 12:19Patch flags
  7. 15:00Tree flattening
~/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.