The use of the SRI integrity attribute is due to the rise of CDN services such as https://cdnjs.com which OS trusted by over 12.5% of all websites, serving over 200 billion requests each month.
Some IPFS sites which are supposedly decentralized, import resources from CDNs, exposing them to risks.