And once you vendor your dependencies you can calculate the hash yourself
[0]: there are caveats to this
I think https and integrity hashes address two very orthogonal attack vectors.
Plus, as mentioned, only 1st party origins enjoy any benefits of caching content for faster load times so you get an additional benefit
wget url; sha256 file
So, why did you not actually post the correct shell script? Apparently that would have been more effort to get right and ensure is correct right? And also work for every OS. And there you have it: if someone first has to figure out which script to run, some percentage will give up here. And that's my point: the browser should make it as easy as possible to avoid that from happening.