~/talk

JavaScript's Secret Life Between the Ticks

Talkat Frontend Nation 2025 · 2025-06-03..06-05· [javascript]

Covers how the event loop actually schedules work: call stack → Web APIs → queues (microtask vs task vs rAF) and shows a live demo where an infinite promise loop microtasks (promises) freeze the page while setTimeout and requestAnimationFrame keep CSS animations responsive. Notes setTimeout has a ~4ms minimum so timers can fire ~250Hz versus rAF tied to display refresh (120Hz on the demo machine). Mentions queueMicrotask, process.nextTick, requestIdleCallback and scheduler.postTask priorities.

AI-written summary · about

  1. 0:00JavaScript event loop intro
  2. 3:24Single-threaded basics
  3. 4:07Sync vs async tasks
  4. 6:12Event loop callbacks
  5. 10:24DOM updates delays
  6. 13:16Async execution order
  7. 16:06Promise vs setTimeout
  8. 17:29Promise timing
  9. 19:55Blocking main thread
  10. 21:03Task queues & animation
  11. 22:51Microtask vs task vs animation
  12. 23:12Demo blocking event loop
  13. 25:18Microtask tips
  14. 27:04Resources & frameworks
  15. 27:44Q&A async errors
  16. 29:31Async pitfalls
  17. 31:37Optimizing async ops
  18. 33:22Closing remarks
~/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.