From 6c92ccb57b04fac0066819dba960bef1f53aeafa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Behnam=20Esfahbod=20=E2=9D=84?= Date: Tue, 14 Nov 2017 09:17:20 -0800 Subject: [PATCH] Move important head elements to top of the block The `` tag is expected to be in the first 1024 bytes of an HTML file, so it's common to keep it as the very first item under the `` tag. (See ) Also moving up other important meta tags which may affect rendering of the page as a whole. --- templates/base.html | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/templates/base.html b/templates/base.html index a13baa6..4cf8525 100644 --- a/templates/base.html +++ b/templates/base.html @@ -7,6 +7,16 @@ + + + + + {% if page in hidden_pages %} + + {% else %} + + {% endif %} + {% if USE_LESS %} @@ -40,16 +50,6 @@ {% include "partial/ga.html" %} {% endif %} - - - - - {% if page in hidden_pages %} - - {% else %} - - {% endif %} - {% if BROWSER_COLOR %}