ozten / TLD.js

Kickstarter project for applying for a JavaScript top level domain (.js TLD)
337 stars 37 forks source link

Make min.js a CDN of sorts #45

Open platy11 opened 8 years ago

platy11 commented 8 years ago

Wouldn't it be awesome to do something like this:

<script src="https://jquery.min.js/3.0.0/"></script>
<!-- or -->
<script src="https://lodash.min.js/2.2.0/"></script>

So basically, the syntax could be something like

http[s]://[library].min.js/[version]/

and that would be loading the code of the respective library off a fast and free CDN.

Any ideas?

lassediercks commented 8 years ago

blocked by #8

toastal commented 10 months ago

CDNs aren’t useful anymore. Browsers sandbox them per domain & the above examples lack subresource integrity hashes for the bare minimum of safety against malicious actors.