Book Image

Learning Bootstrap

Book Image

Learning Bootstrap

Overview of this book

Table of Contents (15 chapters)
Learning Bootstrap
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
1
Getting Started with Bootstrap
Index

The Bootstrap CDN


In the previous code example, you can see that we have used CDN for the HTML5 shiv element and the respond.js file.

A CDN is a large distributed system of servers deployed in multiple data centers across the Internet. Using a CDN means that you save significant bandwidth as the files are not loaded from your server. You can leverage the benefit of a blazing-fast performance, as the files loaded from the CDN are loaded in parallel and not queued by the browser, as they are in a different domain. In addition, the CDN provides data centers closer to the users, meaning that, the server selected is typically based on the user's location and faster routes. Thus, files are loaded faster. In some cases, it abstracts the need to load the files. Plenty of websites use the Bootstrap CDN and if the website users have previously visited one of these websites, then the browser will use that same copy of the Bootstrap files abstracting the need to load Bootstrap again, thereby increasing...