3 ms·
I really like this idea. Is this something browser plugins would be able to do?
by krapp 12y ago
I really like this idea. Is this something browser plugins would be able to do?
- jimrandomh 12y agoI don't think a plugin could do it, but it's back- and forward-compatible enough that it makes sense to just go ahead and add it to a browser without waiting for standardization.
- aikah 12y agoI guess, but it would have to download the script before hand,check the hash,then append the script somewhere. I dont see any other technique."document.write" is only efficient while the page itself is loading. It's an interesting problem nevertheless, and could be extended to any link or src attributes in tags. In case the hash and the file dont match,the browser wouldnt load that file.