From a security and privacy perspective there are already good reasons to self-host JS code and other external artifacts instead of sourcing them from CDNs. In some situations even without this change it's faster (if it's not already cached - because you can fetch it from the same host in the existing connection via http2).
So self-host those JS files, and also use fewer of them if possible.
So self-host those JS files, and also use fewer of them if possible.