The Bootstrap CDN links

The Bootstrap CDN (Content Delivery Network) is the way of including required Bootstrap libraries from third-party servers.

If you do not want to host libraries on your own due to bandwidth, speed or any other issues then you may use CDN links hosted by third parties.

The CDN from the popular sources can also be useful for the speed of your website. For example, some other website also used a CDN link of Bootstrap 4 from the same source and a user visited that website. Your web page also used that CDN link then it will be loaded from the user’s cache and thus helps in increasing the load time.

See the list of CDN links for CSS and JavaScript for Bootstrap provided by different hosts.

The maxcdn CDN for Bootstrap

The maxcdn is one the most popular host for CDN links not only for Bootstrap but other libraries as well.

The Bootstrap 4 CSS CDN link (minified version):

https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css

The markup with this link that you may use in the <head> section or another part:

<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">

The development version is also available:

https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.css

This is useful if you want to look at the CSS classes or require to override certain properties in your external CSS files.

Bootstrap 4 JavaScript links by maxcdn

The minified version:

https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js

The code for including in the web page:

<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>

In Bootstrap 4, the popper.js is also required for various components like popovers, tooltips etc. You may include bundled JS for that or include popper.js or its minified version separately.

The bundled JS CDN link from maxcdn:

<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.bundle.min.js"></script>

Bootstrap v3.3.7 CDN links

See the CDN links below for Bootstrap version 3:

For CSS, use this HTML code:

<link rel=”stylesheet” href=”https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css”>

The Bootstrap JS CDN:

<script src=”https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js”></script>

The jQuery CDN from maxcdn

For different components of Bootstrap (dropdown, popovers, tooltips, carousel etc.) that require JS, the jQuery library is also required. The jQuery library CDN link from maxcdn:

<script src=”//code.jquery.com/jquery-3.3.1.min.js”></script>

CDN links from cloudflare/cdnjs

The CDNJS also hosts a big collection of libraries including Bootstrap. You may find any CDN link from the 3000+ hosted libraries here.

Following is the list of Bootstrap CDN links.

The developer’s version of Bootstrap 4 CSS:

https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0/css/bootstrap.css

The minified version of HTML:

<link rel=”stylesheet” href=”https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0/css/bootstrap.min.css” crossorigin=”anonymous”>

Bootstrap 4 JavaScript file:

https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0/js/bootstrap.js

The minified version with the <script> tag to be included in a web page:

<script src=”https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0/js/bootstrap.min.js”></script>

Bootstrap 3.3.7 links on cdnjs/cloudflare

Following are the Bootstrap v3.3.7 links.

CSS developer version:

https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.css

CSS minified version with HTML code:

<link rel=”stylesheet” href=”https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css” crossorigin=”anonymous”>

JavaScript developer’s version:

https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.js

Minified version of 3.3.7

<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>

 

 

Author - Abu Hassam

Abu Hassam is an experienced web developer. He graduated in Computer Science in 2000. Started as a software engineer and worked mostly on web-based projects.
Just like any great adventure, web development is about discovery and learning.
The web is a vast playground, and the best adventures are yet to come. Happy coding and exploring! ️