Salesforce recommends including any additional JavaScript files by using static resources. Importing scripts differently, for example, loading them from a CDN, is discouraged for performance and security reasons.
Is your Salesforce solution affected by Improper script loading?
Clayton detects anti-patterns and offers automated fix advice to kickstart your Well-Architected journey.