From 7a0c27871ddd0718cec70cb26c4ed3968b829307 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sat, 1 Mar 2014 11:58:54 -0800 Subject: [PATCH] Revamp docs JS * Move JS to the footer * Dedupe the JS needed for the Twitter tweet and follow buttons --- docs/_includes/footer.html | 25 +++++++++++++++++++++++-- docs/_includes/header.html | 9 --------- 2 files changed, 23 insertions(+), 11 deletions(-) diff --git a/docs/_includes/footer.html b/docs/_includes/footer.html index e9df6a9..2ef9ea2 100644 --- a/docs/_includes/footer.html +++ b/docs/_includes/footer.html @@ -6,11 +6,9 @@
  • -
  • -
  • @@ -26,3 +24,26 @@
  • Legacy v1.0.2 Docs
  • + +{% 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 %} + + + + + + + + + diff --git a/docs/_includes/header.html b/docs/_includes/header.html index 661be05..b2d7bd0 100644 --- a/docs/_includes/header.html +++ b/docs/_includes/header.html @@ -22,15 +22,6 @@ - - - - - - - - -