~/talk

What the heck is the event loop anyway?

Talkat JSConf EU 2014 · 2014-09-13..09-14· [javascript, web-platform]
links:none on file
slides:none on file

Explains that V8 only provides heap and call stack and V8 has no setTimeout or DOM APIs, shows how the browser’s web APIs run outside V8 and push callbacks to a task queue, demonstrates the event loop’s single job: pull the next task when the stack is empty, uses a live visualiser called loop, reproduces setTimeout(0) behavior, AJAX callbacks, and how long synchronous work blocks rendering and floods the queue.

AI-written summary · about

  1. 0:00Start
  2. 0:31The Event Loop
  3. 4:15Javascript Is a Single-Threaded Program
  4. 7:21What Happens When Things Are Slow
  5. 9:01Running Code in Browsers
  6. 11:09Asynchronous Callbacks
  7. 11:57Javascript Can Only Do One Thing at Time
  8. 13:58Task Queue
  9. 20:18Callbacks
  10. 22:23Simulate the Repaint or the Render in the Browser
  11. 24:47Scroll Handlers
~/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.