Is it possible to use .wasm files for static assets in front-end?

For example I ported a C++ game to JS with Emscripten and result is .wasm file and .js file (which is responsible for loading this .wasm and some system things).
Another example - some 3D graphics libraries (three.js, etc…) can use wasm files for fast computing.

Is it possible to store that files in static assets as other data files (.txt, fonts…) in canister and load to index.html in browser?

1 Like

Yes, why not? It’s all just binary data to the asset canister.

1 Like

Yes it works (on local). Thank you very much! Will try on real net.

1 Like