▶

In the Loop: How the Browser Event Loop Runs JavaScript

JSConf · Talk · YouTube title: Jake Archibald on the web browser event loop, setTimeout, micro tasks, requestAnimationFrame, ...
Why it's here

HN treats it as the best primer on the event loop, praising its entertaining, easy-to-grasp visual explanations.

What it covers

Jake Archibald's JSConf.Asia 2018 talk "In the Loop" explains the browser event loop, covering tasks, microtasks, requestAnimationFrame, and how rendering interleaves with JavaScript. It uses visual walkthroughs to show why code runs in surprising orders and why setTimeout fixes are unreliable.