Cut My Task Into Pieces: Concurrent Mode
summary
Demonstrates splitting long main-thread work into component- and item-sized chunks, running them with a custom scheduler (RX Angular CDK scheduler) so the browser gets back to input within a frame budget. Live demo shows a 400 ms long task turned into INP 400ms→25ms by scheduling and chunking, using a 16ms frame budget and prioritization tiers (immediate, user-blocking, normal, low, idle). Implements chunking, measuring runtime, and re-scheduling; the approach works across frameworks and improves INP and TBT.
AI-written summary · about
chapters (13)
- 0:00Introduction to talk
- 1:55What are long tasks
- 3:20Understanding INP metric
- 4:45Demo of INP in action
- 6:52Event loop and input delay
- 8:55Three ways to improve tasks
- 10:18Concurrent mode overview
- 11:40Splitting work by component
- 12:43How chunking works
- 13:50Demo of concurrent rendering
- 14:55Prioritizing tasks
- 15:37Demo of prioritized rendering
- 15:59Wrap up and resources
