wouldn't it be nice if sites could share a cache of common js? ... stuff like re...

@daniel@roe.dev

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) - github.com/danielroe/cross-ori

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

- github.com/danielroe/cross-ori
- github.com/WICG/cross-origin-s
- chromewebstore.google.com/deta