Crypto Wasm
    Preparing search index...

    Function isStreamingSupported

    • Check if WASM streaming compilation is supported.

      Streaming compilation (WebAssembly.instantiateStreaming) allows the browser/runtime to compile WASM while downloading, giving a faster startup for large modules.

      Returns boolean

      true when streaming instantiation is available.

      import { isStreamingSupported } from "@aspect/crypto-wasm";

      if (isStreamingSupported()) {
      const { instance } = await WebAssembly.instantiateStreaming(fetch("/mod.wasm"));
      }