What the heck is the event loop anyway? | Philip Roberts | JSConf EU
What it is
Philip Roberts explains the JavaScript event loop, call stack, callbacks and asynchronous behavior with live visualizations using a tool he built. It demystifies terms like non-blocking and single-threaded.
Why Hacker News recommends it
HN commenters repeatedly name it as the best explanation of the JS event loop and the first thing to watch before tackling async code.
- 16 people recommended it
- 14 different months
- 5 strong recommendations
- first 2015, last 2025
What HN commenters said
“how async operations are scheduled on a single thread”
Shows how async operations are scheduled on one thread.
lollipop25, 2016-03 · Strong recommendation · in “Ask HN: How do I go about truly “understanding” JavaScript, or any language?”
“Philip Roberts has a great lecture called what the heck is the event loop anyway?”
Event loop understanding underpins async JS.
zappo2938, 2016-10 · Strong recommendation · in “Understanding Async JavaScript”
“The tool he created to display the event loop in real time is fantastic.”
Event loop talk with a real-time visualization tool.
keyvin, 2018-10 · Strong recommendation · in “Ask HN: What are some of the best technical talks you've heard?”
“it's probably the most helpful deep-dive I've ever seen about some aspect of JavaScript”
Deep-dive into JS event loop, key difference from Python.
_bxg1, 2020-02 · Strong recommendation · in “Ask HN: How do I learn JavaScript?”
“This one is my all time favorite”
Favorite tech talk on the event loop.
krisgenre, 2020-11 · Strong recommendation · in “How does the event loop work in JavaScript? [video]”
“a great, very simple explanation.”
Gives the mental model of the JS event loop.
the_cat_kittles, 2015-03 · Recommendation · in “JavaScript Call Stack/Event Loop Visualization”
“Listed among favorite tech talks.”
hackaflocka, 2016-10 · Recommendation · in “Ask HN: What's your favorite tech talk?”
“Be sure to understand the event loop.”
Great talks on the event loop for beginners.
mxschumacher, 2018-07 · Recommendation · in “Ask HN: What you wish you'd known before getting into JavaScript?”
Excerpts from Hacker News comments, linked to the originals. Summaries and labels were written by a language model from those comments.
Topics: event loop, async javascript, call stack, callbacks, visualization
Also recommended by the same people
talkJake Archibald on the web browser event loop, setTimeout, micro tasks, requestAnimationFrame, ...JSConf · 7 HN recommenders · 2018–2023
talk10 Things I Regret About Node.js - Ryan Dahl - JSConf EUJSConf · 6 HN recommenders · 2018–2025
musicEvo-Devo (Despacito Biology Parody) | A Capella Scienceacapellascience · 6 HN recommenders · 2017–2026
lectureJustice: What's The Right Thing To Do? Episode 01 "THE MORAL SIDE OF MURDER"Harvard University · 11 HN recommenders · 2013–2025
explainerUnix and GoogleFOAM · 4 HN recommenders · 2016–2023
explainerDoctor Dissects the Wim Hof Method - Cold Hard Science AnalysisMedlife Crisis · 3 HN recommenders · 2019–2022
documentaryAlcoholic Vervet Monkeys! - Weird Nature - BBC animalsBBC Studios · 2 HN recommenders · 2014–2021
explainerDiffie-Hellman Key ExchangeArt of the Problem · 9 HN recommenders · 2016–2024