~/talk

DOM implementation techniques

Talkat JSConf EU 2011 · 2011-10-01..10-02· [javascript, web-platform]
slides:none on file

Browsers build a layout/render tree that maps DOM nodes to rectangles, then top‑down layout assigns sizes (tables may need multiple passes), and lazy reflow marks dirty nodes so scripts avoid repeated work. Style matching uses buckets (ID/class/tag/others) to avoid millions of rule checks — Twitter would need ~10 million naive matches. Reading layout properties forces an immediate layout — the CodeMirror case rewrites a loop to compute nodes then add => 3 ms and avoids freezes. GPUs handle layers and 3D transforms for faster drawing; reflow-on-read forces layout.

AI-written summary · about

  1. 0:00Intro
  2. 1:00The browser
  3. 2:10Render tree
  4. 3:15Layout tree
  5. 3:45Layout in
  6. 5:20Layouts
  7. 6:20Styling
  8. 7:15Reflow
  9. 11:55Drawing
  10. 14:50Style matching
  11. 16:15Buckets
~/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.