Let the main thread breathe!
summary
Global web usage hits about 60% connected and maintaining 60 fps gives a 16.6 ms budget per frame, shrinking to ~11 ms at 90 Hz and ~8 ms at 120 Hz. Practical fixes shown are offloading heavy work to WebWorker with Comlink to run reducers or long sorts without blocking the UI, compiling hot code to AssemblyScript -> WebAssembly to encode video in‑browser, and using CSS Paint / Houdini worklets for complex rendering like animated backgrounds or barcode generation while animations remain smooth.
AI-written summary · about
chapters (12)
- 0:00Start
- 4:21Majid Hajian
- 9:43Web Workers
- 11:09Comlink
- 14:25Redux Pattern
- 16:11How More Reliable Is Your Application
- 17:24Parallelism
- 19:39Webassembly
- 20:37Assembly Script
- 21:03Started with Assembly Script
- 25:29Worklets
- 27:30Feature Detection








