# Why is lottie-web so big, and how do I make it smaller?

> The full lottie-web build includes three renderers and support for After Effects expressions, so lottie.min.js is about 306 KB minified (version 5.13.0, before gzip). If your files do not use expressions, import the light build, lottie_light, which is about 168 KB and contains no eval call, which also removes the bundler warning. dotLottie players that use WebAssembly are another option.

Updated November 2026. Source: https://www.exodeui.com/questions/why-is-lottie-web-bundle-so-big/

## Key takeaways

- lottie.min.js (5.13.0): about 306 KB minified, uncompressed
- lottie_light.min.js: about 168 KB, SVG renderer only, no expressions
- The "use of eval" warning comes from expression support
- Import lottie-web/build/player/lottie_light to switch
- Lazy-load animations that are not visible on first paint

## Frequently asked questions

### Does lottie_light play all animations?

It plays animations that do not rely on expressions and that the SVG renderer supports. Test your files.

### How do I get rid of the eval warning?

Use the light build, which does not include expression support and has no eval call.

### Is lottie-web safe with a strict CSP?

The full build needs unsafe-eval for expressions. The light build avoids that.

### How big is lottie-web gzipped?

It depends on your bundler and compression. Measure it in your build output rather than relying on a published number.

## Related

- [Animation and Core Web Vitals](https://www.exodeui.com/learn/animation-core-web-vitals)
- [Fix Lottie in Next.js](https://www.exodeui.com/questions/lottie-react-nextjs-document-is-not-defined)
- [Best Lottie player libraries](https://www.exodeui.com/best-lottie-player-libraries)
- [Best web performance animation tools](https://www.exodeui.com/best-web-performance-animation-tools)
