Laboratory · JavaScript Lab
Event loop investigation
Briefing
Synchronous code, microtasks and tasks all end up running on the same thread. What decides the order, and where exactly does rendering fit?
One call stack, two queues and a rule about when the browser is allowed to breathe.
- Laboratory
- JavaScript Lab
- Level
- ENGINEER
- Estimated time
- 12 minutes
- Method
- simulation
- Variables under observation
- event loopcall stackmicrotask queuetask queuerendering opportunity