From 4f5a865684db1ade9185a6b4823a8e249fd616d3 Mon Sep 17 00:00:00 2001 From: Ross Allen Date: Mon, 4 Nov 2013 22:17:05 -1000 Subject: [PATCH] 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(-) diff --git a/_includes/footer.html b/_includes/footer.html index 6deb13192b..8927c9048b 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 %} + +