Using third-party sources for JavaScript should be treated as an anti-pattern.

What about https://www.google-analytics.com/analytics.js, https://platform.twitter.com/widgets.js, and similar? Google, Twitter, and other major companies still instruct users to load scripts directly from their domains.