lottie-react icon indicating copy to clipboard operation
lottie-react copied to clipboard

Decrease bundle size impact by using lottie light

Open mcmxcdev opened this issue 4 years ago • 6 comments

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

mcmxcdev avatar Jul 08 '21 08:07 mcmxcdev

@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?

Gamote avatar Jul 08 '21 08:07 Gamote

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 avatar Jul 08 '21 11:07 mcmxcdev

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.

mcmxcdev avatar Aug 06 '21 11:08 mcmxcdev

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

MauriceArikoglu avatar Feb 16 '22 00:02 MauriceArikoglu

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

kb1995 avatar Sep 14 '22 15:09 kb1995

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

dilan-dio4 avatar Nov 23 '22 19:11 dilan-dio4