Gamote / lottie-react

A lightweight React library for rendering complex After Effects animations in real time using Lottie.
https://lottiereact.com
Other
772 stars 59 forks source link

Decrease bundle size impact by using lottie light #33

Open mcmxcdev opened 3 years ago

mcmxcdev commented 3 years ago

Describe the solution you'd like Use the lottie light variant like described here: https://github.com/airbnb/lottie-web/issues/1184#issuecomment-703324484

Gamote commented 3 years ago

@mhatvan We'll have a look over this, as we need to make sure that no missing functionality will affect the current implementation.

Do you know specifics about what's left out from the light version?

mcmxcdev commented 3 years ago

You can read about it here: https://github.com/airbnb/lottie-web/issues/929 Will require some testing with all different permutations of settings to really know.

A flag to use either or might also make sense, so its up to the user!

mcmxcdev commented 3 years ago

Any news on this?

We currently lazy-load react-lottie to keep the first load impact smaller, but switching to light version would be even better for every user.

MauriceArikoglu commented 2 years ago

Bump. Also very interesting for us. Can I maybe help?

kb1995 commented 2 years ago

Any updates to this? Lottie is the biggest package in our bundle and would love to see some way to improve this

dilan-dio4 commented 1 year ago

I manually modified this project to use just the light version. Find it here: https://github.com/dilan-dio4/lottie-light-react