~/talk

Style Recalculation Secrets They Don't Want You To Know

Talkat CSS Day 2023 · 2023-06-08..06-09· [web-performance, css]
slides:none on file

Claim: CSS selector micro‑optimizations rarely matter but can explode in large apps — a stray adjacent sibling rule causes 1 second delay by forcing 5,000 nodes restyled. Investigation uses Firefox Profiler, Chromium DevTools experiments (invalidation tracking, initiator), Edge selector stats, and CDP via Puppeteer/Playwright. Instrumentation inside Blink surfaces invalidation sets, match counts and per‑selector times (hundreds of ms or thousands of match attempts). Practical route: reproduce slow scenario, measure affected nodes, use selector stats to find and fix the hot selector.

AI-written summary · about

  1. 0:00Intro
  2. 2:27Why do we keep hearing this
  3. 4:09Information Overload
  4. 5:25Invalidation Recalculation
  5. 8:17Invalidation Sets
  6. 9:40CSS Rules
  7. 10:58Invalidation
  8. 12:31Style Invalidation
  9. 16:11Speed Test
  10. 19:10How to make it slow
  11. 20:15A true story
  12. 27:10Two Solutions
  13. 28:06MicroBenchmark
  14. 29:49Four Simple Steps
  15. 30:29Devtools
  16. 30:59Firefox Profiler
  17. 38:53Conclusion
  18. 39:58Papa Roach
  19. 42:53Chrome Tracing
  20. 46:01Where to give feedback
~/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.