- Caches Images for Reuse
- Supports Preloading
- Shares image-memory cross-tab
pnpm add @warp-drive/experiments
Or use your favorite javascript package manager.
- 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