aboutsummaryrefslogtreecommitdiff
path: root/_includes
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-11-30 00:43:27 -0800
committerMark Otto <[email protected]>2013-11-30 00:43:27 -0800
commit819e920d1646f7e9fec8d3dd6ba10dcbd2fa1599 (patch)
tree54a0f02728d68aaef563cad4891099c98150721d /_includes
parenta7a9dcaeb2231b2580cf79fcee7d777b98ac24d8 (diff)
parent95487f75d1e8cf5da8af098bf13f1c3f5b13be36 (diff)
downloadbootstrap-819e920d1646f7e9fec8d3dd6ba10dcbd2fa1599.tar.xz
bootstrap-819e920d1646f7e9fec8d3dd6ba10dcbd2fa1599.zip
Merge branch 'master' of github.com:twbs/bootstrap
Diffstat (limited to '_includes')
-rw-r--r--_includes/footer.html18
1 files changed, 16 insertions, 2 deletions
diff --git a/_includes/footer.html b/_includes/footer.html
index 7f9f8f103..56518ac49 100644
--- a/_includes/footer.html
+++ b/_includes/footer.html
@@ -1,10 +1,9 @@
<!-- 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="https://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>
<script src="{{ page.base_url }}docs-assets/js/holder.js"></script>
<script src="{{ page.base_url }}docs-assets/js/application.js"></script>
@@ -18,6 +17,21 @@
<script src="{{ page.base_url }}docs-assets/js/customizer.js"></script>
{% endif %}
+{% comment %}
+ Inject Twitter widgets asynchronously. Snippet snipped from Twitter's
+ JS interface site: https://dev.twitter.com/docs/tfw-javascript
+
+ * "js.async=1;" added to add async attribute to the generated script tag.
+{% endcomment %}
+<script>
+ window.twttr = (function (d,s,id) {
+ var t, js, fjs = d.getElementsByTagName(s)[0];
+ if (d.getElementById(id)) return; js=d.createElement(s); js.id=id; js.async=1;
+ js.src="https://platform.twitter.com/widgets.js"; fjs.parentNode.insertBefore(js, fjs);
+ return window.twttr || (t = { _e: [], ready: function(f){ t._e.push(f) } });
+ }(document, "script", "twitter-wjs"));
+</script>
+
<!-- Analytics
================================================== -->
<script>