Chapter 03
The HTML event loop
The browser's event loop beyond tasks and microtasks: where rendering happens, animation frames, timer accuracy, task priorities and idle callbacks. The language-level loop is in JavaScript's async chapter.- 010Where does rendering happen in the event loop?Corehard
- 020How does
requestAnimationFramework, and when do its callbacks run?medium - 030Why doesn't
setTimeout(fn, 0)run after 0 ms?medium - 040How do you schedule work by priority with
scheduler.postTask()andscheduler.yield()?hard - 050What does
requestIdleCallbackguarantee, and when does it never run?medium