~/talk

Event loop and asynchrony in JavaScript

TalkinFrenchat DevFest Nantes 2018 · 2018-10-18..10-19· [javascript]
slides:none on file

Explains why JavaScript remains single‑threaded while performing asynchronous work and describes the event loop implementation: setTimeout callbacks go to a FIFO task queue, requestAnimationFrame uses a render queue processed before painting, and Promises/MutationObserver schedule higher‑priority microtasks that run to exhaustion. Demonstrates with live examples (100 timeouts and a click handler, then hundreds of thousands of Promise microtasks) to show how microtasks can block rendering, and mentions Internet Explorer differences and requestIdleCallback as an alternative.

AI-written summary · about

  1. 0:00Start
  2. 11:45Microtasks
  3. 14:46Resume
  4. 15:29Conclusion
  5. 16:20Pointers
~/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.