4 ms·
Better idea would be to reference it via cryptographic signature. Then you could host your own copy of lodash for example, but still benefit if a client already
by et1337 11y ago
Better idea would be to reference it via cryptographic signature. Then you could host your own copy of lodash for example, but still benefit if a client already has it downloaded from a different site.
- moreati 11y agoSubresource Integrity is the standard for that https://www.w3.org/TR/SRI/ https://www.w3.org/TR/SRI/
- et1337 11y agoDo you know if this allows consolidation of multiple copies of the same resource from different hosts?
- moreati 11y agoI don't know. At a guess such optimization would be beyond the scope of the standard - hence up to each vendor/browser/user-agent.
- woogley 11y agoNot currently, because it conflicts with CSP. See https://news.ycombinator.com/item?id=10311020 https://news.ycombinator.com/item?id=10311020
- deleted 11y ago[deleted]