What the heck is the event loop anyway? | Philip Roberts | JSConf EU
286K subscribers • 28 videos on Hallway
- Recommended by 19 people: 16 on Hacker News, 2 in engineering communities and 1 curated list.
- A classic. People kept recommending it from 2015 to 2023.
- Presented by Philip Roberts
- May be out of date. Uploaded 12 years ago, in an area where tools change fast.
Intermediate. Assumes working knowledge.
3.8M views12 years ago19 recommendations
Web developmentSystems programmingJavaScriptHow browsers workConcurrency and parallelism
Philip Roberts explains how the JavaScript event loop, call stack, and web APIs interact to handle asynchronous code.
JavaScript programmers like to use words like, “event-loop”, “non-blocking”, “callback”, “asynchronous”, “single-threaded” and “concurrency”. We say things like “don’t block the event loop”, “make sure your code runs at 60 frames-per-second”, “well of course, it won’t work, that function is an asynchronous callback!” If you’re anything like me, you nod and agree, as if it’s all obvious, even though you don’t actually know what the words mean; and yet, finding good explanations of how JavaScript actually works isn’t all that easy, so let’s learn! With some handy visualisations, and fun hacks, let’s get an intuitive understanding of what happens when JavaScript runs. Transcript: 2014.jsconf.eu/speakers/philip-roberts-what-the-heck-is-the-… License: For reuse of this video under a more permissive license please get in touch with us. The speakers retain the copyright for their performances.Why it's here
19 people recommend thisWhat people say. Widely recommended as the single best and clearest explanation of the JavaScript event loop and concurrency model.
Moments people linked to
u/d4nyllin r/node • Recommends
lollipop25on Hacker News • Recommends
On “Ask HN: How do I go about truly “understanding” JavaScript, or any language?”
zappo2938on Hacker News • Recommends
On “Understanding Async JavaScript”
keyvinon Hacker News • Recommends
On “Ask HN: What are some of the best technical talks you've heard?”
_bxg1on Hacker News • Recommends
On “Ask HN: How do I learn JavaScript?”
krisgenreon Hacker News • Recommends
On “How does the event loop work in JavaScript? [video]”
programming-talkscurated list on GitHubRecommends
Under “JavaScript”
the_cat_kittleson Hacker News • Recommends
On “JavaScript Call Stack/Event Loop Visualization”
hackaflockaon Hacker News • Recommends
On “Ask HN: What's your favorite tech talk?”
mxschumacheron Hacker News • Recommends
On “Ask HN: What you wish you'd known before getting into JavaScript?”
machiawelicznyon Hacker News • Recommends
On “Ask HN: What you wish you'd known before getting into JavaScript?”
mettamageon Hacker News • Recommends
On “JavaScript Is C”
hoorayimhelpingon Hacker News • Recommends
On “Eloquent JavaScript 3rd Edition (2018)”
devxpyon Hacker News • Recommends
On “Linux containers in a few lines of code”
tmh88jon Hacker News • Recommends
On “Modern CI is too complex and misdirected”