Bootstrap > Overview

Bootstrap from CDN in Bootstrap

How to load Bootstrap file from CDN?

CDN stands for Content Delivery Network or Content Distribution Network, here is the great explanations of CDN and loading files from it.

Loading bootstrap files from CDN helps us in gaining the overall performance of the website. The Bootstrap files (.css or .js or fonts files - all related with Bootstrap) can be loaded from MaxCDN and here website url

Here is the code to load Bootstrap files from CDN, we can copy-paste below code snippet under <head></head> of the web page or layout page or master page to use Bootstrap 

Important: Please note that these are live server path so if you do not have internet connection, these files do not get loaded into the browser and Bootstrap functionality may not work.

<!-- Minified CSS -->
<link rel="stylesheet" href="" />

<!-- Minified JavaScript -->
<script src=""></script>

<!-- Optional theme, if needed -->
<link rel="stylesheet" href="" />

It is suggested to use the CDN files only in the live environment.


Please note that following .JS files must be loaded before Bootstrap javascript files

  • jQuery file
  • Respond.js (optional) - only when we want our web site to support older browser like IE 6, 7 etc. or other  browser thta doensn't support CSS3 @media tags.

Sample Bootstrap page template

Here is the sample web page structure using Bootstrap

<!DOCTYPE html>

    <!-- Minified CSS -->
    <link rel="stylesheet" href="" />
    <!-- Custom CSS written to override Bootstrap behavior or add new styles -->
    <link rel="stylesheet" href="/custom/custom.css" />

    <!-- jQuery file -->
    <script src=""></script>

    <!-- Minified JavaScript -->
    <script src=""></script>

    <!-- Use other plug ins like Respond.js etc. or Custom .js file -->

    <div class="well">
        <h1>Welcome to Bootstrap</h1>
            Bootstrap is the most popular HTML, CSS, and JS framework for developing responsive, mobile first projects on the web.

Sequence of loading files

  1. Bootstrap css file
  2. Custom css file
  3. jQuery scsript file
  4. Bootstrap script file
  5. Other plug ins or Custom .js file

 Views: 9473 | Post Order: 4

Write for us

Hosting Recommendations