Skip to main content

instantiateStreaming

function WebAssembly.instantiateStreaming
Jump to headinginstantiateStreaming(
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

Parameters Jump to heading

Jump to headingresponse: Response | PromiseLike<Response>
optional
Jump to headingimportObject: Imports

Return Type Jump to heading

Back to top