]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Serve jQuery from cookie-free Google APIs
authorRoss Allen <rossgit@gmail.com>
Tue, 5 Nov 2013 08:11:57 +0000 (22:11 -1000)
committerRoss Allen <rossgit@gmail.com>
Tue, 5 Nov 2013 08:11:57 +0000 (22:11 -1000)
jQuery.com uses Google Analytics and so sets a cookie when you visit
the site. When you request jquery.js from its CDN, code.jquery.com,
you take a hit from sending your previous GA cookie in the request.

Google Hosted Libraries[1] and googleapis.com never set cookies.

[1] https://developers.google.com/speed/libraries/devguide

_includes/footer.html

index 7f9f8f103b0d754bf5e5a62c5fabe6b62b63240f..6deb13192bab76d6bae9da0e5fb0892ba45493e8 100644 (file)
@@ -1,7 +1,7 @@
 <!-- Bootstrap core JavaScript
 ================================================== -->
 <!-- Placed at the end of the document so the pages load faster -->
-<script src="https://code.jquery.com/jquery-1.10.2.min.js"></script>
+<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
 <script src="{{ page.base_url }}dist/js/bootstrap.js"></script>
 
 <script src="http://platform.twitter.com/widgets.js"></script>