~/talk

Don't block the event loop!JavaScript Async for Effortless UX

Talkat JSConf Korea 2019 · on Tuesday, 2019-09-03· [web-platform, web-performance]
slides:none on file

Explains why UI freezes come from run to completion, call stack and the event loop and shows concrete tools and tradeoffs rather than vague UX tips. demonstrates a 3s frame stall versus 16ms 60fps budget and explains microtask vs task ordering with Promise and setTimeout. uses Web Workers and chunked generators to move CPU work off main thread and to slice work into tasks. Profiles show big drops in interaction wait time and remaining DOM updates as the limiting factor.

AI-written summary · about

  1. 0:00Async JavaScript and UX
  2. 1:22UX problems in web apps
  3. 3:10Run-to-completion model
  4. 6:54Call stack and event loop
  5. 8:24Event loop and async programming
  6. 12:30UI blocks from async APIs
  7. 15:02Blocking UI demo setup
  8. 17:55Web Workers for blocking tasks
  9. 19:45Web Workers demo
  10. 21:14Chunking heavy tasks
  11. 22:45Task chunking demo
  12. 23:32Optimizing DOM updates
  13. 24:38Optimized demo and profiling
  14. 25:01Solutions and best practices
~/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.