Skip to main content
WebAssembly.compileStreaming - WASM - Web documentation
function WebAssembly.compileStreaming
compileStreaming(source: Response | Promise<Response>): Promise<Module>
The `WebAssembly.compileStreaming()` function compiles a `WebAssembly.Module` directly from a streamed underlying source. This function is useful if it is necessary to a compile a module before it can be instantiated (otherwise, the `WebAssembly.instantiateStreaming()` function should be used). [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/compileStreaming)

Parameters

source: Response | Promise<Response>

Return Type

Promise<Module>