~/talk

Make your animations perform well

Talkat JSConf Budapest 2017 · 2017-10-26..10-27· [web-performance, web-animation]
slides:none on file

Advice: avoid unnecessary motion, prefer CSS transforms and opacity for GPU compositing, and aim for 60fps so each frame meets a ~16ms budget. Use requestAnimationFrame for JS-driven frames, apply will-change sparingly because each layer consumes memory, and use the FLIP pattern to precompute positions. Test on real low-end devices and with Chrome/Firefox devtools (layer borders, paint flashing, FPS meter). Polyfill Web Animations API or use libraries only when their cost is justified.

AI-written summary · about

  1. 0:00Introduction
  2. 0:45My story
  3. 1:40Living room
  4. 2:45Chairs
  5. 4:15Dont use them
  6. 4:40CSS vs JavaScript
  7. 7:00Browser paints a website
  8. 8:10Layout
  9. 8:30Layers
  10. 9:10Compositing
  11. 9:40Changes
  12. 11:35Why
  13. 13:30The problem
  14. 14:15Will Change
  15. 15:00Give a browser a moment
  16. 15:45Too many layers
  17. 16:35Use will change
  18. 18:10Flippityflip States
  19. 18:40Transforms
  20. 19:10Why use transforms
  21. 20:10Where to use flip
  22. 20:50Serving the frames
  23. 22:05The 60 millisecond deadline
  24. 22:40RequestAnimationFrame
  25. 23:10How it works
  26. 24:45Test your animations
  27. 25:40Timeline tool
  28. 26:00Layers tab
  29. 26:35Firefox
  30. 27:05Summary
~/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.