~/talk

Let the Main Thread Breathe!

Talkat HalfStack Online 2020 · on Friday, 2020-10-02· [web-performance, frontend-architecture]
slides:none on file

Global web apps hit a 16.6ms frame budget for 60fps and cheaper phones (Nokia 2 vs iPhone) make main-thread blocking visible, so this talk shows concrete off-main-thread fixes: Comlink + Web Workers to move heavy Redux reducers or a blocking sort off the UI thread (demo: UI freezes with sync sort, responsive after worker), AssemblyScript → WebAssembly for in-browser MP4 camera encoding, and CSS Paint / Houdini worklets used to build a smooth barcode generator.

AI-written summary · about

  1. 0:00Introduction
  2. 0:26Why main thread matters
  3. 5:20Main thread overload
  4. 9:20Web workers basics
  5. 12:35Web workers with Comlink
  6. 14:25Offloading Redux to workers
  7. 16:35Reliability over speed
  8. 19:06Demo blocked UI
  9. 19:48Demo unblocked UI
  10. 20:08WebAssembly intro
  11. 21:14AssemblyScript benefits
  12. 23:03Using WebAssembly
  13. 24:51WebAssembly reliability
  14. 25:53Worklets explained
  15. 27:18CSS Paint API demo
  16. 29:04Barcode generator demo
  17. 29:27Summary and tools
~/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.