Skip to content

Alternatives of Draco worker called from unpkg.com which can be down sometimes #1848

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

Open
hamza-hajji opened this issue Apr 3, 2025 · 3 comments
Labels
feature-suggestion Suggestion for how to extend xeokit

Comments

@hamza-hajji
Copy link
Contributor

Is your feature request related to a problem? Please describe.
The GLTF plugin uses the draco loader which uses a web worker loaded from an external cdn (see screenshot), in https://unpkg.com/@loaders.gl/draco@3.2.6/dist/draco-worker.js

Image

But unpkg.com can be down sometimes which renders the web app unresponsive.

Describe the solution you'd like
A way to provide the draco-worker.js from a different source to make it more reliable.

Describe alternatives you've considered
I looked into the xeokit code, I can't find where the unpkg request is made except in a cryptic file which I don't know where it's located

Image

@hamza-hajji hamza-hajji added the feature-suggestion Suggestion for how to extend xeokit label Apr 3, 2025
@Amoki
Copy link
Contributor

Amoki commented Apr 3, 2025

I had similar issues with unpkg. I replaced it with https://cdn.jsdelivr.net (https://cdn.jsdelivr.net/npm/@loaders.gl/draco@3.2.6/dist/draco-worker.js in this case) should be better

@hamza-hajji
Copy link
Contributor Author

@Amoki Thanks, can you please share how you changed that source?!

@Amoki
Copy link
Contributor

Amoki commented Apr 3, 2025

Oh, I did not change it in this case, and I thought you had control over it.
My contribution stops here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-suggestion Suggestion for how to extend xeokit
Projects
None yet
Development

No branches or pull requests

2 participants