~/talk

Under the Browser Hood: How the Event Loop and Compositing Work

TalkinRussianat Я 💛 Фронтенд 2023 · on Saturday, 2023-06-17· [web-platform, web-performance]
links:none on file
slides:none on file

Covers how the browser event loop coordinates tasks, microtasks and requestAnimationFrame, and demonstrates a layout thrash bug where mixing geometry writes and reads in the same loop causes repeated reflows and a ~30× slowdown unless split into separate write and read passes. Describes modern multi-threaded rendering with a compositor/GPU that creates layers and GPU textures (memory examples like 100×100 → 30,000 bytes or 60,000 on Retina) and gives concrete fixes: animate transform/opacity/filters or use will-change, precreate layers deliberately, use requestAnimationFrame, and inspect Layers/Performance in DevTools.

AI-written summary · about

  1. 0:00Introduction
  2. 6:14Modern rendering cycle
  3. 19:18Animations and compositing layers
  4. 27:30Memory and layer optimization
  5. 30:43Q&A
~/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.