Web Development — Hard
Key points
- Microtasks have higher priority than macrotasks.
- The microtask queue is fully drained before the next event loop iteration.
- Rendering typically occurs after the microtask queue is empty.
- Recursive microtasks can block the event loop indefinitely.
Ready to go further?
Related questions
