Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 846 Bytes

File metadata and controls

35 lines (28 loc) · 846 Bytes

WarpDrive WarpDrive

ImageWorker

  • Caches Images for Reuse
  • Supports Preloading
  • Shares image-memory cross-tab

Install

pnpm add @warp-drive/experiments

Or use your favorite javascript package manager.

How It Works

  • The main thread requests the worker to either load or preload an image
  • the worker downloads the image if needed via fetch, putting the response into the browser's http cache
  • the worker generates a blob containing the image bytes
  • the worker returns an object url for the blob