WebAssembly.compileStreaming

E127481

WebAssembly.compileStreaming is a WebAssembly JavaScript API method that compiles a WebAssembly module directly from a streaming source, such as a fetch response, for faster and more efficient loading.

All labels observed (2)

How this entity was disambiguated

Statements (44)

Predicate Object
instanceOf WebAssembly API method ⓘ
static method ⓘ
alternativeTo WebAssembly.compile ⓘ
asynchronous true ⓘ
availableOn WebAssembly constructor object ⓘ
bindingFor WebAssembly binary format ⓘ
canBePolyfilledBy fetch + WebAssembly.compile ⓘ
category web platform API ⓘ
definedIn WebAssembly JavaScript API ⓘ
designGoal efficient streaming compilation ⓘ
reduced startup latency for wasm applications ⓘ
enables compilation while bytes are still downloading ⓘ
errorType CompileError on invalid wasm code ⓘ
TypeError on invalid arguments ⓘ
fasterThan WebAssembly.compile in typical network scenarios ⓘ
hasParameter importObject ⓘ
source ⓘ
introducedFor streaming compilation of WebAssembly modules ⓘ
language JavaScript ⓘ
optimizes load time of WebAssembly modules ⓘ
memory usage during compilation ⓘ
parameterType importObject: object (optional) ⓘ
source: Response or Promise<Response> ⓘ
partOf WebAssembly ⓘ
WebAssembly namespace ⓘ
requires Content-Type: application/wasm in some browsers ⓘ
secure context in some environments ⓘ
resolvesTo WebAssembly.Module ⓘ
returns Promise ⓘ
securityContext subject to same-origin and CORS rules ⓘ
sideEffect does not instantiate the module ⓘ
specifiedIn WebAssembly JavaScript Interface specification ⓘ
status standardized API ⓘ
supportedIn modern desktop browsers ⓘ
modern mobile browsers ⓘ
supports compilation from fetch() responses ⓘ
compilation from other Response objects ⓘ
compilation from streaming sources ⓘ
throwsOn invalid WebAssembly binary format ⓘ
network errors ⓘ
non-OK HTTP status codes in some implementations ⓘ
usageExample WebAssembly.compileStreaming(fetch('module.wasm')) ⓘ
usedWith WebAssembly.instantiate ⓘ
WebAssembly.instantiateStreaming ⓘ

How these facts were elicited

Referenced by (4)

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

WebAssembly JavaScript Interface → definesFunction → WebAssembly.compileStreaming ⓘ
WebAssembly.instantiateStreaming → relatedFunction → WebAssembly.compileStreaming ⓘ
WebAssembly.compileStreaming → fasterThan → WebAssembly.compile in typical network scenarios ⓘ
linked to: WebAssembly.compileStreaming
WebAssembly.compile → relatedFunction → WebAssembly.compileStreaming ⓘ