module@warp-drive/experiments @experimentalMove requests into a
Move image loading into a
⚠️ Experimental, use at your own risk
Everything in this package is an experiment we are developing for possible inclusion in WarpDrive. Nothing here has been through an RFC, and any of it may change or be removed in a minor release. Read the Experiments guide before depending on any of it.
Each experiment is its own entry point.
Move requests into a SharedWorker
data-worker:DataWorkerwraps a Store that runs inside aSharedWorker, so fetching and caching happen off the main thread and identical requests from several tabs or windows are made only once.worker-fetch:WorkerFetchis the request handler your app's own Store installs to hand its requests to thatDataWorker. The two are used together.
Move image loading into a SharedWorker
image-worker:ImageWorkerruns in the worker, fetches each image once, and caches an object URL for it.image-fetch:ImageFetchis the main-thread client. Callload(url)to get an object URL you can assign to an<img>. Used together withimage-worker.
Persist data in the browser
document-storage:DocumentStoragestores request documents using the StorageManager API rather than IndexedDB.DataWorkeruses it as its persisted cache.storage: reactive key/value resources persisted inlocalStorageorsessionStorage, for app state rather than request documents.
Paginate reactively
pagination: reactive pagination primitives. The implementation lives in@warp-drive/core, but the API is published only from here while it is experimental. The<Paginate />and<EachLink />components that build on it are published from@warp-drive/ember/experiments.
Guides
- Experiments: what "experimental" means here, and the list of experiments that have a guide.
- Storage Resources: persist reactive class fields with the
storageentry point. - Pagination: paginate a collection with the
paginationentry point, in paged or infinite mode.