Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

SRI is a great way to make an html page that loads all the js from a server, tell the user to store that locally, and be sure that the loaded js files will never change (otherwise they won't get loaded).


Why not just store all the js locally too?


Purely for UX, it's easier to say "save the page you're currently viewing" than "save this page and also these files". It's not a huge difference, though, as you noted.


It's slower but also provides better privacy.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: