Guest blog post on Cross-Origin Storage in Transformers.js
Read OriginalThis guest blog post for Hugging Face explores the proposed Cross-Origin Storage (COS) API in Transformers.js. The API, navigator.crossOriginStorage.requestFileHandle(hash), allows web applications to cache and retrieve files across origins, potentially revolutionizing web performance. The post explains the typical usage flow, including cache hit/miss handling, and notes other projects experimenting with it like WebLLM, wllama, Flutter, and Emscripten. It provides code examples for requesting file handles and storing blobs.
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser
Top of the Week
No top articles yet