Skip to main content
WebAssembly.instantiateStreaming - WASM - Web documentation
function WebAssembly.instantiateStreaming
instantiateStreaming(
response: Response | PromiseLike<Response>,
importObject?: Imports,
): Promise<WebAssemblyInstantiatedSource>
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](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/instantiateStreaming)

Parameters

response: Response | PromiseLike<Response>
optional
importObject: Imports

Return Type