u/fagnerbrackin r/Frontend • Recommends
#eventloop#settimeout#requestanimationframe
Jake Archibald on the web browser event loop, setTimeout, micro tasks, requestAnimationFrame, ...
286K subscribers • 28 videos on Hallway
- Recommended by 8 people: 7 on Hacker News and 1 in engineering communities.
- A classic. People kept recommending it from 2018 to 2023.
- Presented by Jake Archibald, Developer Advocate for Google Chrome
- May be out of date. Uploaded 8 years ago, in an area where tools change fast.
Intermediate. Assumes working knowledge.
807K views8 years ago8 recommendations
Web developmentProgramming languagesJavaScriptHow browsers workWeb performance
Jake Archibald explains the browser event loop, detailing how tasks, microtasks, requestAnimationFrame, and rendering interleave on the main thread.
"In The Loop" presented by Jake Archibald at JSConf.Asia 2018 Have you ever had a bug where things were happening in the wrong order, or particular style changes were being ignored? Ever fixed that bug by wrapping a section of code in a setTimeout? Ever found that fix to be unreliable, and played around with the timeout number until it kinda almost always worked? This talk looks at the browser's event loop, the thing that orchestrates the main thread of the browser, which includes JavaScript, events, and rendering. We'll look at the difference between tasks, microtasks, requestAnimationFrame, requestIdleCallback, and where events land. Hopefully you'll never have to use setTimeout hacks again!" Jake is developer advocate for Google Chrome. He's one of the editors of the service worker spec, so he's into offline-first, push messaging and web performance. JSConf.Asia - Capitol Theatre, Singapore - 27 January 2018 Source: 2018.jsconf.asia/ 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
8 people recommend thisWhat people say. Highly recommended as the clearest and most entertaining visual explanation of the browser event loop and asynchronous execution.
Moments people linked to
wattengardon Hacker News • Recommends
On “Ask HN: What are some of the best technical talks you've heard?”
olavggon Hacker News • Recommends
On “Ask HN: What are some of the best technical talks you've heard?”
phist_mcgeeon Hacker News • Recommends
On “How does the event loop work in JavaScript? [video]”
mxschumacheron Hacker News • Recommends
On “Ask HN: What you wish you'd known before getting into JavaScript?”
luuuzetaon Hacker News • Recommends
On “Ask HN: Do you recall any book or course that made a topic finally click?”
cassepipeon Hacker News • Recommends
On “How to think about `async`/`await` in Rust”
mananaysiempreon Hacker News • Recommends
On “Populating the page: how browsers work”
u/wasupinternetin r/node • Mentions
u/anonyuser415in r/Frontend • Mentions
Nickon Stack Overflow • Mentions
On “NextJS API Route Returns Before Data Received?”
memcoon Hacker News • Mentions
On “Release Notes for Safari Technology Preview 81”
ativzzzon Hacker News • Mentions
On “Ask HN: Should I move away from JavaScript based skillset because of saturation?”
u/No_Drive_5095in r/functionalprogramming • Mentions
On “Do you find functional programming to be more work (or harder work), up front?”