Skip to content

Commit abdf41f

Browse files
committed
Add a local jQuery fallback.
Shouldn't really happen, but China for example has blocked Google so this should help.
1 parent b8bc204 commit abdf41f

File tree

16 files changed

+20
-4
lines changed

16 files changed

+20
-4
lines changed

docs/_includes/footer.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
================================================== -->
3434
<!-- Placed at the end of the document so the pages load faster -->
3535
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
36+
<script>window.jQuery || document.write('<script src="../assets/js/vendor/jquery.min.js"><\/script>')</script>
3637

3738
{% if site.github %}
3839
<script src="../dist/js/bootstrap.min.js"></script>

docs/assets/js/vendor/jquery.min.js

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/examples/blog/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ <h4>Elsewhere</h4>
169169
================================================== -->
170170
<!-- Placed at the end of the document so the pages load faster -->
171171
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
172+
<script>window.jQuery || document.write('<script src="../../assets/js/vendor/jquery.min.js"><\/script>')</script>
172173
<script src="../../dist/js/bootstrap.min.js"></script>
173174
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
174175
<script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>

docs/examples/carousel/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ <h2 class="featurette-heading">And lastly, this one. <span class="text-muted">Ch
207207
================================================== -->
208208
<!-- Placed at the end of the document so the pages load faster -->
209209
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
210+
<script>window.jQuery || document.write('<script src="../../assets/js/vendor/jquery.min.js"><\/script>')</script>
210211
<script src="../../dist/js/bootstrap.min.js"></script>
211212
<!-- Just to make our placeholder images work. Don't actually copy the next line! -->
212213
<script src="../../assets/js/vendor/holder.min.js"></script>

docs/examples/cover/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ <h1 class="cover-heading">Cover your page.</h1>
7373
================================================== -->
7474
<!-- Placed at the end of the document so the pages load faster -->
7575
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
76+
<script>window.jQuery || document.write('<script src="../../assets/js/vendor/jquery.min.js"><\/script>')</script>
7677
<script src="../../dist/js/bootstrap.min.js"></script>
7778
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
7879
<script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>

docs/examples/dashboard/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ <h2 class="sub-header">Section title</h2>
239239
================================================== -->
240240
<!-- Placed at the end of the document so the pages load faster -->
241241
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
242+
<script>window.jQuery || document.write('<script src="../../assets/js/vendor/jquery.min.js"><\/script>')</script>
242243
<script src="../../dist/js/bootstrap.min.js"></script>
243244
<!-- Just to make our placeholder images work. Don't actually copy the next line! -->
244245
<script src="../../assets/js/vendor/holder.min.js"></script>

docs/examples/jumbotron/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ <h2>Heading</h2>
9696
================================================== -->
9797
<!-- Placed at the end of the document so the pages load faster -->
9898
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
99+
<script>window.jQuery || document.write('<script src="../../assets/js/vendor/jquery.min.js"><\/script>')</script>
99100
<script src="../../dist/js/bootstrap.min.js"></script>
100101
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
101102
<script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>

docs/examples/navbar-fixed-top/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ <h1>Navbar example</h1>
8888
================================================== -->
8989
<!-- Placed at the end of the document so the pages load faster -->
9090
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
91+
<script>window.jQuery || document.write('<script src="../../assets/js/vendor/jquery.min.js"><\/script>')</script>
9192
<script src="../../dist/js/bootstrap.min.js"></script>
9293
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
9394
<script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>

docs/examples/navbar-static-top/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ <h1>Navbar example</h1>
8989
================================================== -->
9090
<!-- Placed at the end of the document so the pages load faster -->
9191
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
92+
<script>window.jQuery || document.write('<script src="../../assets/js/vendor/jquery.min.js"><\/script>')</script>
9293
<script src="../../dist/js/bootstrap.min.js"></script>
9394
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
9495
<script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>

docs/examples/navbar/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ <h1>Navbar example</h1>
8787
================================================== -->
8888
<!-- Placed at the end of the document so the pages load faster -->
8989
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
90+
<script>window.jQuery || document.write('<script src="../../assets/js/vendor/jquery.min.js"><\/script>')</script>
9091
<script src="../../dist/js/bootstrap.min.js"></script>
9192
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
9293
<script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>

0 commit comments

Comments
 (0)