From 5e652332d1d5b5c3c5e86da0938d571795ce6161 Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Wed, 9 Oct 2013 15:21:03 -0700 Subject: use CDN for jQuery instead of vendoring it; fixes part of #10989 --- _includes/footer.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '_includes/footer.html') diff --git a/_includes/footer.html b/_includes/footer.html index 9e66c58a1..c791b4144 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -1,7 +1,7 @@ - + -- cgit v1.2.3 From 4b175d908cdbe923cfb2509bd5549509c300a71e Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Thu, 10 Oct 2013 01:51:09 -0700 Subject: use https:// for CDN links - works when viewing page via file:// - sets a good example security-wise --- _includes/footer.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '_includes/footer.html') diff --git a/_includes/footer.html b/_includes/footer.html index c791b4144..7f9f8f103 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -1,7 +1,7 @@ - + -- cgit v1.2.3 From 38d689491033cc3a95b7ac74999f34428a837895 Mon Sep 17 00:00:00 2001 From: Ross Allen Date: Mon, 4 Nov 2013 22:11:57 -1000 Subject: Serve jQuery from cookie-free Google APIs 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '_includes/footer.html') diff --git a/_includes/footer.html b/_includes/footer.html index 7f9f8f103..6deb13192 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -1,7 +1,7 @@ - + -- cgit v1.2.3 From 4f5a865684db1ade9185a6b4823a8e249fd616d3 Mon Sep 17 00:00:00 2001 From: Ross Allen Date: Mon, 4 Nov 2013 22:17:05 -1000 Subject: Load Twitter widget async, prevent SPOF Twitter's widget library[1] provides an async snippet to inject the script tag later. Since widgets.js came before the local JS, if twitter.com took long to respond it would prevent subsequent synchronous script tags. [1] https://dev.twitter.com/docs/tfw-javascript --- _includes/footer.html | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to '_includes/footer.html') diff --git a/_includes/footer.html b/_includes/footer.html index 6deb13192..8927c9048 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -4,7 +4,6 @@ - @@ -18,6 +17,19 @@ {% endif %} +{% comment %} + Inject Twitter widgets asynchronously. Snippet snipped from Twitter's + JS interface site: https://dev.twitter.com/docs/tfw-javascript +{% endcomment %} + + + -- cgit v1.2.3 From 18318b81b080de83567488031f13d9394ae21c16 Mon Sep 17 00:00:00 2001 From: Ross Allen Date: Tue, 5 Nov 2013 07:39:50 -1000 Subject: Add async attribute to Twitter widget script --- _includes/footer.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to '_includes/footer.html') diff --git a/_includes/footer.html b/_includes/footer.html index 14f6db9a1..56518ac49 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -20,11 +20,13 @@ {% 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 %} {% if page.slug == "customize" %} - - - - - + {% endif %} {% comment %} -- cgit v1.2.3 From 8087f95ca4ed948cd10b92836ddfce56307707da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zlatan=20Vasovi=C4=87?= Date: Sat, 7 Dec 2013 10:27:28 +0100 Subject: Load minified Bootstrap JS code --- _includes/footer.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '_includes/footer.html') diff --git a/_includes/footer.html b/_includes/footer.html index 1188e10cf..095e96eb5 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -2,7 +2,7 @@ ================================================== --> - + -- cgit v1.2.3