show .wasm loading progress #21222
-
Hey ! I see some people online managed to show the loading percentage of the .wasm main module, but I didn't find any clean implementation (for example, WordPress/wordpress-playground#46 works but seems to patch emscripten functions, making it prone to break in the future) I wanted to know if there was an official, supported way to do this Thanks ! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
If you preload the .wasm file and then pass it to the module using A general solution probably wouldn't make a lot of sense, as there's no consistent shared UI for Emscripten projects. Many only exist in the background, and have no control over any HTML elements. |
Beta Was this translation helpful? Give feedback.
If you preload the .wasm file and then pass it to the module using
wasmBinary
, then you can download it with any sort of normal fetch progress code you like.A general solution probably wouldn't make a lot of sense, as there's no consistent shared UI for Emscripten projects. Many only exist in the background, and have no control over any HTML elements.