~/talk

Perfecting Your Profiling

Talkat React Advanced 2024 · 2024-10-25..10-29· [react, web-performance]
slides:none on file

React DevTools plus Chrome Performance panel expose concrete fixes: recording a profile reveals 254 renders → 2 renders by avoiding state-driven style updates and directly mutating the DOM for width, the profiler points to hook 30 (state width), switching from innerHTML to textContent removes a function that consumes ~34% self time, the realtime metrics view (web vitals moved into Performance) flags slow interactions so using useDeferredValue turns red INP interactions green, caching container height prevents forced layouts, Node and NX builds are profiled via --inspect.

AI-written summary · about

  1. 0:00Introduction
  2. 1:13React dev tools profiling
  3. 7:22Interaction to next paint
  4. 12:06Performance panel deep dive
  5. 16:21Solving layout thrashing
  6. 18:53Quick fire performance tips
  7. 22:24Conclusion
~/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.