Manageability
Medium
Apex Page
SF-0134
Directly importing css and javascript files without using static resources increases load times.
Use static resources to serve JavaScript files, as well as images, CSS, and other non-changing files. JavaScript and other assets served this way benefit from the caching and content distribution network (CDN) built into Salesforce.
30 min
See the Salesforce documentation article: Visualforce Performance: Best Practices > Optimizing JavaScript.