From the course: View Source

Unlock this course with a free trial

Join today to access over 22,400 courses taught by industry experts.

003 Using a CDN to speed up your sites

003 Using a CDN to speed up your sites

From the course: View Source

003 Using a CDN to speed up your sites

Hello! This is Ray Villalobos and welcome to View Source! This week we're taking a look at using CDNs to speed up the loading of your favorite JavaScript libraries. So if you spent too much time playing Angry Birds between page loads, then it's time to View Source. CDN stands for Content Delivery Network, and it's a network of servers that store commonly-used libraries across a wide range of locations. Google for example has copies of the most common JavaScript libraries stored on a CDN. So instead of downloading and installing your own copies of jQuery, you can simply link to Google's. Why a lot of locations? Because the web works by sending and receiving packets of information across different physical locations. The closer a user is to your server, the faster the data will get to them. A CDN puts multiple copies of the files across different physical locations. The users will always get the one that is closest to them. Yahoo!'s developer network, Google and others encourage the use…

Contents