What exactly is the benefit you can get from linking something on an out-of-premise public CDN anyway? To save some traffic?
You still needs to host images and other files by yourself, one big picture could be a few times bigger than those jslibs. Not to mention then you have to handle loading priorities etc to make the external scripts work right.
For me, the only acceptable type of externally linked resource is the one inserted by the CDN that also hosts the site. For example, the statistics script inserted by Cloudflare if you host the site on Cloudflare. Other than that, IMO the risk out weight the benefit.
However, since cache partitioning, this benefit no longer exists.
And, let's don't forget creating a self-hosted CDN service to serve those bundles is not really THAT hard. (also creates job ops)
> Subresource Integrity (SRI) is a security feature that enables browsers to verify that resources they fetch (for example, from a CDN) are delivered without unexpected manipulation. It works by allowing you to provide a cryptographic hash that a fetched resource must match.
polyfill.io was crazy huh, we just let a third party run any JS without even checking integrity. lol anyway please add this snippet for google tag manager, marketing needs it