Search code examples
jqueryprototypejsjavascript-frameworkcdngoogle-cdn

Files (jQuery, jQuery UI, prototype) from external server


If I have to load for example jquery.js file among some (let's tell about 10) other css / js files, what is a better approach?

"Using the google.load() method gives your application high speed and global access to a growing list of the most popular, open-source JavaScript libraries"


Solution

  • Use Google. There's a good chance this will already be cached on the client's computer since lots of people use it, so it may be faster.