Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
stepin opened this issue Sep 19, 2024 · 1 comment
Open

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

stepin opened this issue Sep 19, 2024 · 1 comment

Comments

@stepin
Copy link

stepin commented Sep 19, 2024

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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants