WebAssembly.instantiateStreaming

E127203

WebAssembly.instantiateStreaming is a JavaScript API function that compiles and instantiates a WebAssembly module directly from a streamed source, such as a fetch response, for efficient loading and execution in the browser.

All labels observed (1)

Label Occurrences
WebAssembly.instantiateStreaming canonical 8

How this entity was disambiguated

Statements (47)

Predicate Object
instanceOf JavaScript function ⓘ
WebAssembly JavaScript API feature ⓘ
advantageOver WebAssembly.instantiate with ArrayBuffer-based workflows ⓘ
asynchronous true ⓘ
availableIn secure contexts ⓘ
web browsers ⓘ
belongsToNamespace WebAssembly ⓘ
canBePolyfilledBy fetch + WebAssembly.instantiate with ArrayBuffer ⓘ
canFailWith CompileError ⓘ
LinkError ⓘ
NetworkError ⓘ
TypeError ⓘ
category Web performance API ⓘ
definedIn WebAssembly JavaScript API ⓘ
errorCondition non-wasm MIME type when strict MIME checking is enforced ⓘ
executionEnvironment Web Workers ⓘ
linked to: Web workers

main thread in browsers ⓘ
introducedFor efficient loading of WebAssembly modules ⓘ
streaming compilation of WebAssembly modules ⓘ
streaming instantiation of WebAssembly modules ⓘ
optimizedFor network streaming of .wasm binaries ⓘ
reduced startup time for WebAssembly modules ⓘ
parameter importObject ⓘ
source ⓘ
parameterType importObject: object ⓘ
source: Promise<Response> or Response ⓘ
partOf WebAssembly ⓘ
WebAssembly API ⓘ
WebAssembly JavaScript API ⓘ
relatedFunction WebAssembly.compileStreaming ⓘ
WebAssembly.instantiate ⓘ
requires WebAssembly support in the environment ⓘ
correct WebAssembly MIME type such as application/wasm ⓘ
returns Promise ⓘ
returnsType Promise<{ module: WebAssembly.Module, instance: WebAssembly.Instance }> ⓘ
returnValueIncludes WebAssembly.Instance ⓘ
WebAssembly.Module ⓘ
securityConsideration subject to same-origin and CORS policies ⓘ
specifiedIn WebAssembly JavaScript Interface specification ⓘ
status widely supported in modern browsers ⓘ
supports compiling WebAssembly modules from a streamed source ⓘ
instantiating WebAssembly modules from a streamed source ⓘ
parallel network fetching and compilation ⓘ
using ReadableStream of bytes as input ⓘ
using fetch Response objects as input ⓘ
typicalInput HTTP(S) response containing a .wasm binary ⓘ
usageExample WebAssembly.instantiateStreaming(fetch('module.wasm'), importObject) ⓘ

How these facts were elicited

Referenced by (8)

Full triples — surface form annotated when it differs from this entity's canonical label.

WebAssembly JavaScript Interface → definesFunction → WebAssembly.instantiateStreaming ⓘ
WebAssembly.LinkError → thrownBy → WebAssembly.instantiateStreaming ⓘ
WebAssembly.RuntimeError → usedWith → WebAssembly.instantiateStreaming ⓘ
WebAssembly.instantiate → relatedFunction → WebAssembly.instantiateStreaming ⓘ
WebAssembly.compileStreaming → usedWith → WebAssembly.instantiateStreaming ⓘ
WebAssembly.compile → canBeUsedWith → WebAssembly.instantiateStreaming ⓘ
WebAssembly.Module → instantiatedBy → WebAssembly.instantiateStreaming ⓘ
WebAssembly.Instance → relatedTo → WebAssembly.instantiateStreaming ⓘ