2 ms·
It sucks that we blew up CDNs for security reasons. How nice it would be if sites using React could use the React already in cache from visiting another site!
by jauntywundrkind 3y ago
It sucks that we blew up CDNs for security reasons.
How nice it would be if sites using React could use the React already in cache from visiting another site!
I keep wanting to have some kind of technical answer possible here. Seems hard. And who cares, because massive bundles are what we do now anyways, in most cases. But it sucks that the web app architecture and web resource architecture are both massively less capable than they were 20 years ago.
- ivanjermakov 3y agoEmpty React app is ~400KB uncompressed AFAIR. So just CDNs wouldn't drastically improve the situation.
- jauntywundrkind 3y agoReact was one example, of a library that might be used repeatedly. The premise isn't that react and react alone's core lib is reused (did you include react.dom too?), but that many different libs become cached over time & space.