Skip to content
HomeVideos
AllLongsCategoriesPlaylists
BooksBlogsPodcasts
HistoryListsWatch laterLiked videosFollowing

The videos, books, blogs and podcasts Hacker News keeps recommending, all in one place.

VideosBooksBlogsPodcastsAboutPrivacySettings

Data from Hacker News, HackerTube, HackerBooks, HackerBlogs and Open Library. Credits · Not affiliated with Y Combinator.

HomeVideosBooksBlogsPodcasts
Ctrl K

    Jake Archibald on the web browser event loop, setTimeout, micro tasks, requestAnimationFrame, ...

    JSConf

    7 HN recommenders · recommended in 8 months, 2018–2023

    YouTube

    35:12 · 808K views · Feb 9, 2018

    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.

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

    Software Engineering & LanguagesWeb developmentSoftware performance & optimization
    1. 26:53
      What the heck is the event loop anyway? | Philip Roberts | JSConf EUJSConf3.8M views • 12 years ago
    2. 2:12:42
      Build Your Own AsyncDavid Beazley60K views • 7 years ago
    3. 48:32
      Ryan Dahl: Node JSJSConf35K views • 14 years ago
    4. 40:55
      "Controlling Time and Space: understanding the many formulations of FRP" by Evan CzaplickiStrange Loop Conference69K views • 12 years ago
    5. 33:25
      Dan Abramov: Beyond React 16 | JSConf IcelandJSConf139K views • 8 years ago
    6. 27:42
      Mark DiMarco: User Interface Algorithms [JSConf2014]JSConf52K views • 12 years ago
    7. 36:31
      Hey Underscore, You're Doing It Wrong!InfoQ141K views • 13 years ago
    8. 56:23
      Speed Up Your JavaScriptGoogle TechTalks136K views • 17 years ago
    9. 1:00:34
      High Performance Web Sites and YSlowGoogle TechTalks90K views • 18 years ago
    10. 28:39
      Netflix JavaScript Talks - Async JavaScript with Reactive ExtensionsMatt Marenghi70K views • 12 years ago
    11. 29:47
      The Truth about Rust/WebAssembly PerformanceGreg Johnston218K views • 3 years ago
    12. 3:32:50
      JavaScript: Understanding the Weird Parts - The First 3.5 HoursTony Alicea4.2M views • 11 years ago
    13. 45:05
      Servo Architecture: Safety and Performancelinux conf au 2017 - Hobart, Australia12K views • 9 years ago
    14. 27:21
      Daniel Henry Holmes Ingalls Jr.: The Live Web. Drag 'n drop in the cloudJSConf8.3K views • 13 years ago
    15. 42:15
      "Performance Matters" by Emery BergerStrange Loop Conference502K views • 7 years ago
    16. 35:42
      Progressive Performance (Chrome Dev Summit 2016)Chrome for Developers34K views • 9 years ago
    17. 54:58
      Keynote - JSON Graph: Reactive REST at NetflixAssociation for Computing Machinery (ACM)41K views • 11 years ago
    18. 57:50
      ElixirConf 2018 - Keynote - Chris McCordElixirConf32K views • 8 years ago
    19. 18:55
      [JSConfUS 2013] Tom Occhino and Jordan Walke: JS Apps at FacebookJSConf45K views • 13 years ago
    20. 13:39
      How is this Website so fast!?Wes Bos2.4M views • 2 years ago

    9 comments from Hacker News

    1. @phist_mcgeeNov 2020· in “How does the event loop work in JavaScript? [video]”

      The best primer for the event loop I have found is here: this video The speaker (Jake Archibald) has that rare ability to be both likeable and relatable, while also being incredibly knowledgeable and enthusiastic. I wish a lot more talks were like this!

      Strongly recommendsView on HN
    2. @olavggOct 2018· in “Ask HN: What are some of the best technical talks you've heard?”

      Jake Archibald's "In the Loop", Visual explanation of how the javascript event loop works! Awesome video for every javascript developer. this video

      Strongly recommendsView on HN
    3. @wattengardOct 2018· in “Ask HN: What are some of the best technical talks you've heard?”

      Jake Archibald talking about the javascript event loop and actually making it both entertaining and easily grokable! this video

      Strongly recommendsView on HN
    4. @mananaysiempreOct 2023· in “Populating the page: how browsers work”

      > It basically flickers between tasks very rapidly to simulate concurrency. That’s usually used a description of preemptive multitasking, like what you get running a modern OS on a single core (on multiple cores it’s also this but on each core). Every once in a small while, the current task is made to inhale chloroform, another task is chosen to wake and takes its place. Pro: you can’t hang any given task from a single thread; con: shared memory is very difficult to impossible, as you never know when you’ll be interrupted. Browser JavaScript and UI interactions instead use cooperative multitasking, which you’ll also find in classic Mac OS, 16-bit Windows, basically every embedded system ever, and languages like Python and Lua. A task has to explicitly call out to the scheduler to hand off execution resources to the next one. Pro: as task switching only happens at clearly visible points, many of the horrors of shared memory are diminished; con: you can and will hang the UI (or other outside-world interactions) if you accidentally write an infinite loop or just do too much CPU-bound work without yielding (as any developer using one of the aforementioned systems knows). For how this works in the browser environment specifically, see Jake Archbald’s superb talk[1]. [1] this video

      RecommendsView on HN
    5. @luuuzetaNov 2022· in “Ask HN: Do you recall any book or course that made a topic finally click?”

      I've been struggling with wrapping my head around asynchronous programming with callbacks, promises and async/await in JS, however I think it's finally clicking after watching these YouTube videos and creating a document where I explain these concepts as if I'm teaching them to someone else: * Philip Roberts's What the heck is the event loop anyway? - [LINK] * The Story of Asynchronous JavaScript - [LINK] * JavaScript Callbacks, Promises, and Async / Await Explained - [LINK] * Async Javascript Tutorial For Beginners (Callbacks, Promises, Async Await). - [LINK] * Jake Archibald: In The Loop - setTimeout, micro tasks, requestAnimationFrame, requestIdleCallback, - this video Edit... I've been rewatching these videos, reading the MDN docs, the Eloquent JavaScript book, javascript.info, blogs about the subject, etc. This further proves you shouldn't limit yourself to a single resource, and instead fill up the laguna with water from different sources if you will.

      RecommendsView on HN