~/talk

Practical Guide to Tasks, Promises and Scheduling

TalkinPolishat 4Developers Łódź 2024 · on Wednesday, 2024-12-04· [javascript, web-platform]
slides:none on file

Explains JavaScript’s asynchronous model and event loop, detailing how browsers schedule microtasks vs. macrotasks and how to break up long tasks to avoid freezing the UI. Covers practical APIs like requestIdleCallback and introduces the upcoming Scheduler API, using plain JavaScript (no frameworks or libraries).

AI-written summary · about

  1. 0:00Introduction
  2. 1:11Async vs concurrent in JS
  3. 3:38Promises and background execution
  4. 4:00JS tasks and event loop
  5. 7:53Microtasks vs macrotasks
  6. 10:40Microtask queue order
  7. 13:30Long tasks and UI blocking
  8. 18:50Splitting long tasks
  9. 23:50Yielding with deadlines
  10. 26:38Message channel scheduling
  11. 29:05Scheduler API priorities
  12. 33:19RequestAnimationFrame usage
  13. 35:46RequestIdleCallback for background
  14. 39:43Summary
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.