loaders.gl icon indicating copy to clipboard operation
loaders.gl copied to clipboard

CDN: false ?

Open michaeldll opened this issue 2 years ago • 0 comments

The docs mention that options.cdn disables loading from a CDN, but this does seem to do nothing in practice.

We've had to manually change this in draco-worker.js:

old: te = `te = `https://www.gstatic.com/draco/versioned/decoders/${ct}`, // CDN`, // CDN
new:  te = self.location.href.replace('/draco-worker-custom.js', '') // load from origin in the folder where this file is located

Additional information: Our pipeline is: GLTFLoader > DracoLoader > draco.

michaeldll avatar May 11 '23 10:05 michaeldll