Overview
The three Lottie animation files (spinner.json, success.json, upload.json) are imported statically. They should be loaded lazily to reduce initial bundle size.
Implementation
// In LottiePlayer.tsx or parent
const animationData = await import('../lib/lottie/spinner.json')
Or use dynamic imports with React.lazy for the entire LottiePlayer component.
Acceptance Criteria
Overview
The three Lottie animation files (spinner.json, success.json, upload.json) are imported statically. They should be loaded lazily to reduce initial bundle size.
Implementation
Or use dynamic imports with React.lazy for the entire LottiePlayer component.
Acceptance Criteria