diff options
| author | Chris Rebert <[email protected]> | 2016-01-11 00:04:52 -0800 |
|---|---|---|
| committer | Chris Rebert <[email protected]> | 2016-01-11 00:04:52 -0800 |
| commit | 7752a5192ef18400ef1832468004298e71770052 (patch) | |
| tree | 4910d4047770a4adbc9cfc05cdf415423abb5dc7 /docs/getting-started | |
| parent | 6058dae624710e46b4efcd15aa94cfd7be18b674 (diff) | |
| parent | 71443c503416156a3abbd0e617acee376fc4f14e (diff) | |
| download | bootstrap-7752a5192ef18400ef1832468004298e71770052.tar.xz bootstrap-7752a5192ef18400ef1832468004298e71770052.zip | |
Merge pull request #18668 from twbs/fix-18665
Add SRI hashes for jQuery and Tether in docs
Diffstat (limited to 'docs/getting-started')
| -rw-r--r-- | docs/getting-started/introduction.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/getting-started/introduction.md b/docs/getting-started/introduction.md index b35c4134b..8cec71fd6 100644 --- a/docs/getting-started/introduction.md +++ b/docs/getting-started/introduction.md @@ -27,8 +27,8 @@ 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.tether }}"></script> +<script src="{{ site.cdn.jquery }}" integrity="{{ site.cdn.jquery_hash }}" crossorigin="anonymous"></script> +<script src="{{ site.cdn.tether }}" integrity="{{ site.cdn.tether_hash }}" crossorigin="anonymous"></script> <script src="{{ site.cdn.js }}" integrity="{{ site.cdn.js_hash }}" crossorigin="anonymous"></script> {% endhighlight %} @@ -60,8 +60,8 @@ 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.tether }}"></script> + <script src="{{ site.cdn.jquery }}" integrity="{{ site.cdn.jquery_hash }}" crossorigin="anonymous"></script> + <script src="{{ site.cdn.tether }}" integrity="{{ site.cdn.tether_hash }}" crossorigin="anonymous"></script> <script src="{{ site.cdn.js }}" integrity="{{ site.cdn.js_hash }}" crossorigin="anonymous"></script> </body> </html> |
