~/talk

The Eventloop in JavaScript - How does it work?

Talkat Porto Tech Hub Conference 2024 · on Tuesday, 2024-11-26· [javascript]
slides:none on file

Explains that the event loop actually orchestrates when callbacks run, showing microtask queue vs macro task queue, how Promises, setTimeout and fetch are scheduled, and why a busy loop freezes the UI. Demonstrates a small demo page (fast/slow buttons) and a VS Code Typescript Worksheet plugin running Node/Chrome runtimes; both work and reveal ordering surprises (zero ms setTimeout still defers; first 40 quiz entrants, 28 got one question right). Live-coding verifies behaviors.

AI-written summary · about

  1. 0:00Introduction
  2. 1:49Engine vs runtime
  3. 5:19Why event loop needed
  4. 7:50Call stack and queues
  5. 12:26Web APIs and event loop
  6. 16:41Event loop mechanics
  7. 17:04Live coding demo
  8. 27:09Interactive quiz
  9. 40:14Q&A and closing
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.