Skip to end of metadata
Go to start of metadata

If you haven't heard the term 'Content Delivery Network' (CDN) yet, then you're going to love this one. The concept is simple.

Recognizing the popularity and commonality of certain JavaScript libraries, Google has made them commonly available across their global network of servers. Retrieving these files from Google has several advantages:

  • Google will likely always respond with a server that is closer than yours
  • Google will likely always respond with a server that is faster than yours
  • If your users have already been to a site that uses Google's CDN for the same file, it will be cached in the browser and your user will not have to download it again
  • Since only 2 parallel downloads can be done from the same domain (HTTP spec 1.1), you can maximize performance by increasing parallel downloads.
  • You can save some bandwidth which can increase throughput and possibly even save you money if you're hosting with a company that charges you for the bandwidth you use.

Shout out to Hirvesh Munogee for sharing this on his CODEFUSION LAB blog! For more info, see: Offloading ALL JS Files to Google.

Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.