Tutorials & Tips

Experimenting with a proposed Cross-Origin Storage API in Transformers.js

Original title:Experimenting with the proposed Cross-Origin Storage API in Transformers.js

AI summary

When Transformers.js runs AI models in the browser, web apps from different origins repeatedly download and cache the same model resources (such as Xenova/whisper-tiny.en) and Wasm runtime files (such as the 4,733 kB ort-wasm-simd-threaded.asyncify.wasm). Even when resource URLs are identical, browsers isolate caches via the Network Isolation Key, so a single demo produces 177 MB of redundant downloads and storage. The Cross-Origin Storage API is an early proposal aimed at letting cross-origin apps share cached models and runtime resources. The API is not yet natively implemented in browsers, but it can be experimented with via a Chrome extension polyfill.

Key Takeaways

  • When Transformers.
  • js runs AI models in the browser,web apps from different origins repeatedly download and cache the…
  • en) and Wasm runtime files (such as the 4,733 kB ort-wasm-simd-threaded.
  • asyncify.
  • Even when resource URLs are identical,browsers isolate caches via the Network Isolation Key,so a…

Quick Facts

Published
Updated
Source
Hugging Face 社区博客(混合发现)
Category
Tutorials & Tips
AI score
64
Read the original Read the full article at the original source
Why it matters

这个Chrome提案让不同网站的AI模型共享缓存,对用Transformers.js的Web开发者是切实的性能改进,但还只是早期实验。

Source & copyright

This article is based on curated titles and AI summaries from the AIHOT public API, with attribution and links back. Original copyright remains with the original publishers and authors; this site does not mirror full texts.

Original article · AIHOT entry

How to Cite

When citing this article, keep the title, date, and permalink, and credit Orange News as the source.

Orange News: Experimenting with a proposed Cross-Origin Storage API in Transformers.js. June 23, 2026. https://new.nat6.net/en/news/cmqqz7cqg0ezbslp5zr85m87l/

View all →