~/talk

In the loop

Talkat JSConf.Asia 2018 · 2018-01-25..01-27· [web-performance, web-platform]
slides:none on file

Explains how the browser actually orders work: tasks (queued by setTimeout or events), microtasks can starve rendering (promises run in a microtask queue processed to completion), and render steps include requestAnimationFrame which runs before style/paint. Demos show an infinite loop blocking render, a setTimeout loop that allows frames, requestAnimationFrame making smooth 60Hz animation, and a microtask loop that blocks. Notes include 4.7 ms default for timers, need two requestAnimationFrame ticks to kick CSS transitions, and the Web Animations API exists but is Chrome-only.

AI-written summary · about

  1. 0:00Start
  2. 8:10setTimeout(callback1, 1000); setTimeout(callback2, 1000)
  3. 9:01THE RENDER STEPS
  4. 24:02MICROTASKS
  5. 32:49event.preventDefault(); // Handle event
~/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.