aboutsummaryrefslogtreecommitdiff
path: root/docs/getting-started
diff options
context:
space:
mode:
authorChris Rebert <[email protected]>2015-12-24 18:30:25 -0700
committerChris Rebert <[email protected]>2016-01-10 23:54:17 -0800
commit19d6301506bfde60eb7a93a1a6a0532cb79f6e0f (patch)
tree2a9a79e751d5547f489d7701045db2f01f9fc17a /docs/getting-started
parent6058dae624710e46b4efcd15aa94cfd7be18b674 (diff)
downloadbootstrap-19d6301506bfde60eb7a93a1a6a0532cb79f6e0f.tar.xz
bootstrap-19d6301506bfde60eb7a93a1a6a0532cb79f6e0f.zip
docs: Add SRI hash for jQuery; refs #18665
Diffstat (limited to 'docs/getting-started')
-rw-r--r--docs/getting-started/introduction.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/getting-started/introduction.md b/docs/getting-started/introduction.md
index b35c4134b..51f9ab6cc 100644
--- a/docs/getting-started/introduction.md
+++ b/docs/getting-started/introduction.md
@@ -27,7 +27,7 @@ Copy-paste the stylesheet `<link>` into your `<head>` before all other styleshee
Add our JavaScript plugins, jQuery, and Tether near the end of your pages, right before the closing `</body>` tag. Be sure to place jQuery and Tether first, as our code depends on them.
{% highlight html %}
-<script src="{{ site.cdn.jquery }}"></script>
+<script src="{{ site.cdn.jquery }}" integrity="{{ site.cdn.jquery_hash }}" crossorigin="anonymous"></script>
<script src="{{ site.cdn.tether }}"></script>
<script src="{{ site.cdn.js }}" integrity="{{ site.cdn.js_hash }}" crossorigin="anonymous"></script>
{% endhighlight %}
@@ -60,7 +60,7 @@ Put it all together and your pages should look like this:
<h1>Hello, world!</h1>
<!-- jQuery first, then Tether, then Bootstrap JS. -->
- <script src="{{ site.cdn.jquery }}"></script>
+ <script src="{{ site.cdn.jquery }}" integrity="{{ site.cdn.jquery_hash }}" crossorigin="anonymous"></script>
<script src="{{ site.cdn.tether }}"></script>
<script src="{{ site.cdn.js }}" integrity="{{ site.cdn.js_hash }}" crossorigin="anonymous"></script>
</body>