Elektrine lite

← Feed

@daniel@mastodon.roe.dev

2026-06-26 22:31 UTC

wouldn't it be nice if sites could share a cache of common js? ... stuff like react, or vue or svelte? 👉 there's an early stage proposal for cross-origin storage which enables exactly this there are challenges but I think it's very interesting indeed I'm working with @tomayac to build bundler integration for this (currently a nuxt module + a vite plugin) - https://github.com/danielroe/cross-origin-storage I'd love to know: 1️⃣ if this sounds like a good idea you'd use 2️⃣ if you wanted to test it out and see if it might make a difference for you ... happy to help if you have questions! 🙏 right now testing it out means: ⚪ using the vite plugin or nuxt module ⚪ installing an 'unpacked' version of a chrome extension that polyfills this functionality ⚪ checking to see if your site still builds, and ideally comparing output across several sites - https://github.com/danielroe/cross-origin-storage - https://github.com/WICG/cross-origin-storage - https://chromewebstore.google.com/detail/cross-origin-storage/denpnpcgjgikjpoglpjefakmdcbmlgih

Replies (0)

No replies.