O'Reilly logo

jQuery Design Patterns by Thodoris Greasidis

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using CDNs

Instead of serving all of the JavaScript and CSS files of the third-party libraries from your web server, you should consider using a Content Delivery Network (CDN). Using a CDN to serve the static files of the libraries that are used by your website can make it load faster since:

  • CDNs have high speed connections and several caching levels.
  • CDNs have many geographically distributed servers that can deliver the requested files faster since they are closer to the end user.
  • CDNs help parallelize resource requests, since most browsers can only download up to four resources concurrently from any specific domain.

Moreover, if a user has static resources cached from a previous visit to another website that uses the same CDN, he or she will not ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required