~/talk

CSS. Under the hood.

Talkat React Alicante 2019 · 2019-09-26..09-28· [web-performance, css]

Browser parsing builds DOM and CSSOM in parallel but CSSOM creation blocks JavaScript execution, so external stylesheets stall the critical render path. A demo app renders 5000 elements test and measures inline styles doing extra work — inline style triple-loop in React — producing hundreds of milliseconds of extra render time versus class-based styles. Bundled CSS Modules ≈ CSS classes for speed, while styled-components shows higher cost. Advice: keep critical CSS small, ship styles early, avoid heavy per-element inline style churn.

AI-written summary · about

  1. 0:00Start
  2. 5:18Modeling DOM tree nodes
  3. 6:07Javascript blocks HTML parsing by default
  4. 8:09Modeling CSSOM tree nodes
  5. 9:14What CSSOM tree building impacts
  6. 15:38What can impact CSSOM tree building
  7. 18:23How JS execution time works
  8. 20:48Render tree
  9. 21:24Calculate layout
  10. 22:11Some of the CSS can require more work
  11. 25:02React style attribute a.k.a inline styles
  12. 27:07Case study - 5 elements
  13. 27:17Case study - 5000 elements
  14. 28:22Empty all old style properties
  15. 28:59When iterating over new props repeats the loop
~/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.