~/talk

Further Adventures of the Event Loop

Talkat JSConf EU 2018 · on Saturday, 2018-06-02· [javascript, frontend-architecture]
slides:none on file

Explains how tasks, promises and animation callbacks actually interleave: microtask queue blocks rendering and a demonstrated infinite-promise loop freezes the UI; requestAnimationFrame batches per-frame callbacks; Node differs — the loop runs only while work exists, setImmediate runs before setTimeout(0) and process.nextTick handlers run before promise microtasks; web workers have independent event loops on their own threads; practical fixes shown include splitting work with setTimeout or workers and relying on animation-frame scheduling.

AI-written summary · about

  1. 0:00Start
  2. 1:24What's a task?
  3. 3:23The Rendering Pipeline
  4. 11:39Animation Frame Callback Queue
  5. 15:15Node event loop demo
  6. 20:18Long running tasks will make your web page run like a wonky cat
  7. 20:39Node is a bit different
~/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.