Streaming Compilation of WebAssembly
WebAssembly.instantiateStreaming compiles the module while bytes are still arriving over the network, function by function, so compilation finishes roughly when the download does. It requires the response to carry the application/wasm MIME type and rewards putting hot functions early and keeping modules small.
This Concept is waiting for its first lesson!
WebAssembly.instantiateStreaming compiles the module while bytes are still arriving over the network, function by function, so compilation finishes roughly when the download does. It requires the response to carry the application/wasm MIME type and rewards putting hot functions early and keeping modules small.
Are you a teacher? Sign in to start contributing.
Sign In