Large galleries need performance optimization.
Image optimization:
- Serve responsive images (srcset)
- Use modern formats (WebP, AVIF)
- Compress appropriately for display size
DOM optimization:
- Render only nearby slides (virtualization)
- Unmount distant slides to free memory
Animation optimization:
- Use transform and opacity only
- Add will-change: transform hint
- Disable animations on low-end devices
Measure: Use DevTools Performance panel to identify jank.