Skip to content

Commit fca9c82

Browse files
julien-deramondmdo
andauthored
Docs: add alternative CDNs section in Getting Started > Download (#39145)
Co-authored-by: Mark Otto <markd.otto@gmail.com>
1 parent d07d3a6 commit fca9c82

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

site/content/docs/5.3/getting-started/download.md

+8
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,14 @@ If you're using our compiled JavaScript and prefer to include Popper separately,
5050
<script src="{{< param "cdn.js" >}}" integrity="{{< param "cdn.js_hash" >}}" crossorigin="anonymous"></script>
5151
```
5252

53+
### Alternative CDNs
54+
55+
We recommend [jsDelivr](https://www.jsdelivr.com/) and use it ourselves in our documentation. However, in some cases—like in some specific countries or environments—you may need to use other CDN providers like [cdnjs](https://cdnjs.com/) or [unpkg](https://unpkg.com/).
56+
57+
You'll find the same files on these CDN providers, albeit with different URLs. When changing the URLs, you'll also need to update the `integrity` attribute. Tools like [SRI Hash Generator](https://www.srihash.org/) can help you generate the correct values.
58+
59+
With cdnjs, you can [use this direct Bootstrap package link](https://cdnjs.com/libraries/bootstrap) to copy and paste ready-to-use HTML snippets for each dist file from any version of Bootstrap.
60+
5361
## Package managers
5462

5563
Pull in Bootstrap's **source files** into nearly any project with some of the most popular package managers. No matter the package manager, Bootstrap will **require a [Sass compiler]({{< docsref "/getting-started/contribute#sass" >}}) and [Autoprefixer](https://github.com/postcss/autoprefixer)** for a setup that matches our official compiled versions.

0 commit comments

Comments
 (0)