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.

Try in SPARQL Jump to: Surface forms Statements Referenced by

All labels observed (2)

Statements (44)

Predicate Object
instanceOf WebAssembly API method
static method
alternativeTo WebAssembly.compile
asynchronous true
availableOn WebAssembly constructor object
bindingFor WebAssembly JavaScript Interface
surface form: WebAssembly binary format
canBePolyfilledBy fetch + WebAssembly.compile
category web platform API
definedIn WebAssembly JavaScript Interface
surface form: 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.compileStreaming self-linksurface differs
surface form: 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 specification
surface form: 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
surface form: 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

Referenced by (3)

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.compileStreaming self-linksurface differs
this entity surface form: WebAssembly.compile in typical network scenarios