~/talk

Web Workers - Little Minions At Work for Optimizing Performance

Talkat React India 2024 · 2024-10-15..10-19· [web-platform, web-performance]
links:none on file
slides:none on file

Demo shows pixel‑by‑pixel heavy image filters freezing the UI for about 1089 seconds on the main thread, then running orders of magnitude faster when moved into Web Workers using OffscreenCanvas and transferable objects so the UI remains responsive. Implementation uses the postMessage API for communication and a tiny useWorker hook (≈3 KB) to manage worker lifecycle, auto‑terminate and timeouts. Result: heavy computations offloaded to background threads, smoother animations and far quicker image processing in practice.

AI-written summary · about

  1. 0:00Introduction and speaker background
  2. 3:58JavaScript single-threaded limitations
  3. 7:56Main thread overload problem
  4. 8:18What are Web Workers
  5. 11:41Web Worker implementation demo
  6. 16:20React and Web Workers challenges
  7. 17:51Web Worker hooks and optimizations
  8. 19:34Web Workers use cases
  9. 22:04Closing and Q&A invitation
~/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.