What the heck is the event loop anyway? | Philip Roberts | JSConf EU
JSConfYouTube ↗
Further reading 1
Caption notes
Philip Roberts animates the call stack, browser APIs and task queue to explain how asynchronous callbacks return to JavaScript. A timer expiring does not let its callback interrupt current code, and putting work in a queue does not make it run in parallel. The later examples add rendering, showing both a long task blocking the page and too many scroll callbacks delaying feedback. This 2014 teaching model builds intuition about main-thread tasks; it does not cover the full scheduler, including Promise microtasks.
Archived captions (transcription method unspecified) ↗Original passages · 2
it's a minimum time to executionyou're flooding the queue with queued events.