It is not possible to load .wasm
artifacts directly, since they aren’t served with the correct MIME type (application/wasm
), which is enforced by (at least) Firefox and Chromium.
Here’s the relevant part of the WebAssembly spec: https://www.w3.org/TR/wasm-web-api-1/#streaming-modules
And here’s an issue for the specific case I’m running into: https://github.com/iodide-project/pyodide/issues/174