Delighting Users With Performant Apps
summary
Rebuild of Apple Music on the web demonstrates concrete fixes: box-shadow animations cause 60 repaints and CPU spikes so they replace shadows with a pseudo-element + 3D transform to get hardware acceleration and no repainting; layout transitions use FLIP math or GreenSock’s flip so DOM changes animate reliably; image palettes use ColorThief run in a web worker color analysis off the main thread and animate gradients on canvas. The app ends up smooth and battery-friendlier.
AI-written summary · about
chapters (12)
- 0:00Introduction and speaker intro
- 0:47Why build performant apps
- 2:12Performance is not your problem
- 3:40Challenges of UI performance
- 5:03Rebuilding Apple Music with web tech
- 6:48Avoiding box shadows for performance
- 11:26Replacing shadows with pseudo elements
- 13:56CSS triggers and repaint costs
- 14:18Handling dynamic animations with FLIP
- 18:52Reactive backgrounds with web workers
- 23:11Live demo of the rebuilt app
- 24:46Conclusion and takeaways
