react-lottie
react-lottie copied to clipboard
Bundle size of Lottie is very big

As you can see, the bundle size for react-lottie is very big. Any workarounds?
Any news about this?
Any news about this?
best bet is to use react lazy and suspense to auto code split
It's huge! In https://github.com/crello/react-lottie we will try to do something with it in future versions. Mb lottie-light can be a problem solver. Or lottie lazy load option.
I created a fork here https://github.com/alfonmga/react-lottie-light-ts that uses Lottie light version to achieve a smaller bundle size :)
You can add it to your project by running: yarn add @alfonmga/react-lottie-light-ts
Here's an alternative that's ~2x smaller https://github.com/airbnb/lottie-web/issues/1184#issuecomment-703324484