In the loop
summary
Explains how the browser’s event loop coordinates the main thread — JavaScript, events, and rendering — and shows concrete differences between macrotasks (tasks), microtasks, requestAnimationFrame, and where events are scheduled. Uses these distinctions to diagnose and avoid unreliable timing hacks such as wrapping code in setTimeout to force ordering or style updates.
AI-written summary · about
related talks
35mIn the loop
44mUnder the Browser Hood: How the Event Loop and Compositing Work
27mWhat the heck is the event loop anyway?
27mDon't block the event loop!JavaScript Async for Effortless UX
44mLeveraging the Event Loop for Blazing-Fast Apps!
58mUntangling Browser Threads
33mWe are all good with browsers made by others
20mUsing Multithreading in the Browser