~/talk

Build Snappier Apps with React and Web Workers

Talkat JSCAMP Virtual 2021 · 2021-07-15..07-16· [react, web-platform]
links:none on file
slides:none on file

Claim: moving CPU work off the main thread with Web Workers keeps UI smooth. Demonstration: a naive Fibonacci(42) blocks the main thread for ~5.5s and drops frames; running it in a worker takes ~5.79s but the animation stays at ~60fps (16ms frame budget). Implementation details include messaging via postMessage, tooling support from bundlers (example spelled veet in captions), and higher‑level patterns using comlink or react query for async integration.

AI-written summary · about

  1. 0:00Introduction
  2. 0:56Web performance concepts
  3. 3:42Understanding frame budgets
  4. 6:14Main thread blocking
  5. 10:27Performance demonstration
  6. 13:36Concurrency vs parallelism
  7. 16:20Web workers overview
  8. 21:06Implementing web workers
  9. 25:55Advanced patterns
  10. 27:51When to use web workers
~/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.