Documentation
    Preparing search index...

    Function createGzipLoader

    • Loads raw gzip assets as bytes (§76, §96), with no browser/native dependency.

      const gzip = createGzipLoader((bytes) => new Blob([bytes]).stream()
      .pipeThrough(new DecompressionStream("gzip")).getReader());
      const decoded = await assets.load("/scene.json.gz", gzip);

      Not for HTTP Content-Encoding bodies that fetch already decoded. AssetManager bounds encoded input and the load deadline. Only returns after the decoder's checksum validation. Growing storage plus the final trimmed copy use at most twice the decoded limit, excluding encoded input and the host decoder's buffers.

      Parameters

      Returns AssetLoader<ArrayBuffer>