js_sys::WebAssembly

Function instantiate_streaming

source
pub fn instantiate_streaming(response: &Promise, imports: &Object) -> Promise
Expand description

The WebAssembly.instantiateStreaming() function compiles and instantiates a WebAssembly module directly from a streamed underlying source. This is the most efficient, optimized way to load Wasm code.

MDN documentation