Hi
Elements is using WebAssembly.instantiate
WebAssembly.instantiate() - JavaScript | MDN
I noticed on the doc site :
Warning: This method is not the most efficient way of fetching and instantiating wasm modules. If at all possible, you should use the newer WebAssembly.instantiateStreaming()
method instead, which fetches, compiles, and instantiates a module all in one step, directly from the raw bytecode, so doesn’t require conversion to an ArrayBuffer
.
Is it possible to update generated RemObjectsElements.js and fetchAndInstantiate() function to use the recommended method? This could improve the loading of our library that is ~50-100MB file.
Artur