~/talk

Optimize Your JavaScript App's Performance

Talkat ConfrontJS 2022 · on Saturday, 2022-03-26· [javascript, web-performance]
slides:none on file

A real bug in a Google UI library causes 3–4 seconds freeze when a large dropdown is removed and the author lands a PR that ends up in YouTube tests; diagnosis uses Chrome Performance tab, call tree and flame charts to find long self time JS functions and layout thrash. Fixes include measure before mutate, batching and postponing measurements to the next event-loop, a dirty‑flag so only 600 of 50,000 entities update, and micro-optimizations that shave 60–70 ms then another ~50 ms off critical paths.

AI-written summary · about

  1. 0:00Start
  2. 2:41The RAIL Model - User Experience Benchmarks
  3. 3:57The Event Loop
  4. 5:06Critical Rendering Path
  5. 12:10Rendering and Layout
  6. 12:31Go with the FLOW!
  7. 14:09What's a forced reflow/layout?
  8. 24:50Virtual Scroll
~/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.