- Bootstrap 4 By Example
- Silvio Moreto
- 151字
- 2021-07-09 20:01:17
Optionally using the CDN setup
Bootstrap also offers a setup using CDN to load the framework. It's much easier to set up but comes with some regards. Instead of the <link>
that we created to load the CSS, we must load it from CDN using this:
<link rel="stylesheet" >
And to load the JavaScript file, replace the JavaScript <script>
tag with the following line:
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
There is some discussion on whether or not to use CDN. We will not touch upon this point, but the main pro is having the content provided faster with high availability. The main con is that you cannot have direct control over what is in the content provided, having unreliable imported code.
The decision of whether or not to use CDN depends on the case. You should consider the different arguments and choose an option that best fits your web page. There is no right or wrong, just different points of view.
- 物聯網標準化指南
- MERN Quick Start Guide
- 物聯網網絡安全及應用
- 電子政務效益的經濟分析與評價
- Hands-On Chatbot Development with Alexa Skills and Amazon Lex
- HCNA網絡技術
- 智慧城市中的移動互聯網技術
- HTML5 Game development with ImpactJS
- 網絡的琴弦:玩轉IP看監控
- 中小型局域網組建、管理與維護實戰
- 5G技術與標準
- 物聯網頂層設計與關鍵技術
- 一本書讀懂TCP/IP
- 現場綜合化網絡運營與維護:運營商數字化轉型技術與實踐
- Intelligent Mobile Projects with TensorFlow