From 9e83b8a6e03ba2c7bc2d413be5f5610b25e1ff2c Mon Sep 17 00:00:00 2001 From: vitaut Date: Sat, 23 May 2015 11:42:57 -0700 Subject: [PATCH] Move Google analytics block to the top because according to Google: One of the main advantages of the asynchronous snippet is that you can position it at the top of the HTML document. This increases the likelihood that the tracking beacon will be sent before the user leaves the page. It is customary to place JavaScript code in the section, and we recommend placing the snippet at the bottom of the section for best performance. --- doc/_templates/layout.html | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/doc/_templates/layout.html b/doc/_templates/layout.html index 9a7d686b..08c38e13 100644 --- a/doc/_templates/layout.html +++ b/doc/_templates/layout.html @@ -5,6 +5,15 @@ +{# Google Analytics #} + {% endblock %} {%- macro searchform(classes, button) %} @@ -123,17 +132,6 @@ {% block footer %} {{ super() }} - {# Placed at the end of the document so the pages load faster. #} - - {% endblock %}