There’s lots of really good work going on at the moment to make the browser environment more secure. Github wrote up their experience of implementing one of them.
These changes don’t just make the users’ experiences more secure, they can have very real direct financial benefits too. Github claim:
“Widespread adoption of Subresource Integrity could have largely prevented the Great Cannon attack earlier this year.”