Why would you even load a library script from a third-party when hosting it yourself is more performant and more secure?

There's a lot of very weird websites. You still benefit from checksumming your own assets to prevent cache poisoning and so on.