~/lightning

Web Workers — Add Productivity to Your Web Applications

LightninginRussianat JavaScript fwdays'18 · on Sunday, 2018-03-18· [web-platform, web-performance]

Using Web Workers to move heavy tasks (JSON parsing, image filters, map processing) off the main thread prevents frame drops caused by tasks that take ~80 ms versus the 16 ms budget for 60 FPS. The talk compares worker types (DedicatedWorker vs SharedWorker singleton across tabs), communication methods (structured clone vs transferables) and notes structured-clone can be faster for large payloads and that SharedArrayBuffer was disabled on Jan 5. A demo shows an image-filter app that freezes on the main thread but runs smoothly when the filter runs in a worker, and it recommends a ping-pong warmup for the first messages.

AI-written summary · about

  1. 0:00Introduction
  2. 0:24What are Web Workers
  3. 1:08JavaScript single-thread limits
  4. 2:13Slow UI and interface
  5. 3:41Old solutions vs Web Workers
  6. 4:27How Web Workers work
  7. 5:30When not to use Web Workers
  8. 6:32Data transfer to Web Workers
  9. 7:55Web Workers libraries
  10. 9:01React with Web Workers
  11. 10:06Logic separation with Web Workers
  12. 11:30Web Workers demo
  13. 12:58Performance testing tools
  14. 13:18Summary
~/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.