I noticed in a recent project that the Draco and Basis Universal WASM libraries are served by default from the https://preview.babylonjs.com domain. For example:
Given the term “preview” appears in the domain … is it considered acceptable to use those defaults for production applications, or would that be discouraged? If that usage is OK, it’d be a helpful bundle size improvement if these resources could be compressed by default (gzip, brotli). With some static hosting providers that’s a simple setting to enable, with others it might be more complex. In the case of the Basis transcoder that’s a 450kb → 220kb improvement. Thanks!
EDIT: Perhaps a partial answer to my own question here, the Basis and Draco libraries do change over time, so I suppose an unversioned URL is not the greatest idea for production use. If there’s a versioned alternative to the URLs above I’d be interested to know – and in that case the same Gzip/Brotli question would apply.
I added application/wasm to the list of files being compressed on our preview CDN. it should propagate soon. Might be after the next full purge (i.e. next nightly)