`import React from "@browserIncludedReact/v16.9";`
It might feel weird to build this into the browser, but unless you browse with JS turned off, you are downloading these libraries several times a day, if not hundreds. Non-tech people usually leave js on, so the savings, while small for each person, could end up being huge on a macro scale. Curious what people's thoughts are?
Curious what people's thoughts would be?
Since service workers are now commonplace, it would be more helpful to somehow share the caching of commonly used libraries, so once downloaded in one place the browser would let it serve for another. Not sure how it could work, but would need to ensure the libs were identical. Maybe by use of a hash? Mmm ..
Further, we tried this 15 years ago with popular CDNs serving these libraries, but we discovered that having multiple sites sharing the same one raised several security concerns.
If you think we can’t improve on React/Angular/Vue then great, but for everyone else it’s a disadvantage.