3 ms·
I fully support innovation in terms of a new web browser... but this isn't really what I'd like to see. I feel like the web browser should be more of an OS than
by swalsh 10y ago
I fully support innovation in terms of a new web browser... but this isn't really what I'd like to see. I feel like the web browser should be more of an OS than what it is today. Why does the language attribute in the script tag only support javascript? Wouldn't it be rad if I could write C#, and not have to transpile it... wouldn't it be rad if browsers could add more language support automatically (with your permission first). So if you go to hipster.io and they've decided to develop their whole client side in lisp, but you don't have support yet it goes to mozillas module repository and downloads the plugin? Wouldn't it be rad if jquery was installed as a module, and you only downloaded it once for ALL sites, and you only redownload it if the site's version is different/customized...
- quantumtremor 10y agoThat last one is already implemented with browser caching. Go to a popular website and check the Requests tab on your dev console, it'll probably show 304s for CDNs. But possibly some companies join many JS files together before publishing.
- xg15 10y agoThat requires you (as a site author) choosing between two evils, however - even though there no real technical reason why you should have to: Either copy framework-of-your-choice.js to your own host and accept duplication - or serve it from the framework's CDN and get great caching but also accept that you don't have any control anymore what scripts run on your page.
- firloop 10y agoOr use a CDN and subresource integrity which makes the browser check the script against a hash. https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity https://developer.mozilla.org/en-US/docs/Web/Security/Subres...