LottieFiles / dotlottie-web

Official LottieFiles player for rendering Lottie and dotLottie animations in the web. Supports React, Vue, Svelte, SolidJS and Web Components.
https://developers.lottiefiles.com/docs/dotlottie-player/
MIT License
191 stars 11 forks source link

docs: how to use player without access to CDN? #354

Open stepin opened 2 months ago

stepin commented 2 months ago

There are some cases (like html5 ads or intranet apps) when access to internet is restricted. It's unclear how to use the library in this case. It will be good if it will be documented.

Related docs page: https://developers.lottiefiles.com/docs/dotlottie-player/dotlottie-web/

It has sections via npm and via CDN but most js libraries also has artefacts what can be downloaded and added to static files. Instruction how to produce such artefacts are also ok as for me.

theashraf commented 1 month ago

@stepin Thank you for your suggestion!

In modern development workflows, javascript bundlers typically handle downloading JavaScript artifacts from npm automatically, making it uncommon for developers to manually retrieve static assets from npm to use directly in their websites. Because of that, documenting such a process might be of limited use.

However, I do agree that documenting how to self-host the WASM artifacts (so you don't have to rely on the CDN) is valuable. This topic has already been discussed in this thread, and I'll make sure to include this information in the documentation soon.

Thanks again for bringing this up!