~/talk

Demystifying Web Workers and Service Workers

Talkat CascadiaFest 2016 · 2016-08-03..08-05· [web-platform, javascript]
slides:none on file

JavaScript blocking causes visible jank because a 60 Hz screen gives only 16.7 ms frame budget per frame; web workers run scripts on a true background thread so heavy computation (prime-finding, JSON parsing, virtual-DOM diffing) no longer stalls the main thread and can restore smooth 60 FPS. Service workers add request interception for offline-first caching and background sync, live per-origin and can outlive tabs. Demonstrations include a Pokedex demo, the diagnostic site H5WorkerTest.com, and utility libs promise-worker / pseudo-worker which ship and work as advertised.

AI-written summary · about

  1. 0:00Introduction and hype
  2. 1:30Speaker introduction
  3. 2:34Why web workers exist
  4. 4:17Jank and JavaScript limitations
  5. 7:25Myth of asynchronous APIs
  6. 11:20Solving problems with web workers
  7. 14:29Service workers introduction
  8. 16:37Web vs service workers differences
  9. 18:21Pro tips for workers
  10. 21:11Worker testing tools
  11. 23:19Why workers matter
~/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.