Avatar of izzyq
izzyq asked on

link and script addition on Bootstrap

Hello,

I am learning Bootstrap from W3Schools website.
When I add link and script, they recommend 'MaxCDN'.
so they add the following lines to <head> section.
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
 <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
 <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>

Open in new window

However, some other sites add only
<link rel="stylesheet" href="https://cdn.rawgit.com/twbs/bootstrap/v4-dev/dist/css/bootstrap.css">

Open in new window

to the <header> section and add
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="https://cdn.rawgit.com/twbs/bootstrap/v4-dev/dist/js/bootstrap.js"></script>

Open in new window

to <body> section.
It looks like 'CDN', not 'MaxCDN'.

And if I use 'CDN', some of stuff work that work fine with MaxCDN don't work.
For example, Glyphicons examples don't work with CDN.

What's the reason for the difference between these two?
Should I just go for 'MaxCDN'?

I am using visual Studio 2013 for coding Bootstrap examples.(in case if you know the better solution with VS 2013)
JavaScriptCSSjQueryWeb DevelopmentBootstrap

Avatar of undefined
Last Comment
izzyq

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Rainer Jeschor

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER
izzyq

Thanks!
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck