Jake Archibald on the web browser event loop, setTimeout, micro tasks, requestAnimationFrame, ...
What it is
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.
Why Hacker News recommends it
HN treats it as the best primer on the event loop, praising its entertaining, easy-to-grasp visual explanations.
- 7 people recommended it
- 6 different months
- 3 strong recommendations
- first 2018, last 2023
What HN commenters said
“actually making it both entertaining and easily grokable!”
Entertaining and easy-to-grasp explanation of the JavaScript event loop.
wattengard, 2018-10 · Strong recommendation · in “Ask HN: What are some of the best technical talks you've heard?”
“Awesome video for every javascript developer.”
Visual explanation of how the event loop works.
olavgg, 2018-10 · Strong recommendation · in “Ask HN: What are some of the best technical talks you've heard?”
“The best primer for the event loop I have found is here”
Best event loop primer with a likeable, knowledgeable speaker.
phist_mcgee, 2020-11 · Strong recommendation · in “How does the event loop work in JavaScript? [video]”
“Here are two great talks to help you”
One of two great talks for understanding the event loop.
mxschumacher, 2018-07 · Recommendation · in “Ask HN: What you wish you'd known before getting into JavaScript?”
“I think it's finally clicking after watching these YouTube videos”
One of several videos that helped async JS finally click.
luuuzeta, 2022-11 · Recommendation · in “Ask HN: Do you recall any book or course that made a topic finally click?”
“And also that talk on the event loop”
Helped a C developer grasp async in JS.
cassepipe, 2023-07 · Recommendation · in “How to think about `async`/`await` in Rust”
“see Jake Archbald’s superb talk[1]”
Superb talk on how the browser schedules tasks.
mananaysiempre, 2023-10 · Recommendation · in “Populating the page: how browsers work”
Excerpts from Hacker News comments, linked to the originals. Summaries and labels were written by a language model from those comments.
Topics: javascript, event loop, microtasks, requestanimationframe, settimeout, web browsers
Also recommended by the same people
talkWhat the heck is the event loop anyway? | Philip Roberts | JSConf EUJSConf · 16 HN recommenders · 2015–2025
commentaryJordan Peterson | ContraPointsContraPoints · 1 HN recommender · 2018–2021
commentaryVoting Machines: Last Week Tonight with John Oliver (HBO)LastWeekTonight · 1 HN recommender · 2020–2023
explainerYour Brain Thinks Your Whole Home Is One RoomCGP Grey · 17 HN recommenders · 2020–2022
talkJancovici : Will technology save us from Climate Change ? MIT Media Lab - 23/02/2021Jean-Marc Jancovici · 4 HN recommenders · 2021–2024
tutorialBuild Your Own AsyncDavid Beazley · 4 HN recommenders · 2020–2023
explainerBut what is the Fourier Transform? A visual introduction.3Blue1Brown · 16 HN recommenders · 2018–2025
demoWho's faster around London: a taxi driver or a GPS?Tom Scott plus · 2 HN recommenders · 2022–2026