From 3c52d87c726876264ca4e31709df5027ca1094c6 Mon Sep 17 00:00:00 2001 From: Martii Date: Wed, 29 Jul 2015 17:06:07 -0600 Subject: [PATCH] Post fixes for #339 commits * Scoot ga script to script folder * Don't inject/run on dev * Missing semi-colon * Missing IIFE trailing function call invocation... e.g. code with key isn't called * Use strict XHTML syntax for `sync` attribute * Shifted html to the left... mentioned before with @jerone ... most ppl don't use view source anymore and a debugger doesn't need this... plus saves a bit of storage space and transfer size Closes #339 --- views/includes/footer.html | 18 ++------- views/includes/head.html | 42 +++++++++++---------- views/includes/scripts/googleAnalytics.html | 16 ++++++++ 3 files changed, 42 insertions(+), 34 deletions(-) create mode 100644 views/includes/scripts/googleAnalytics.html diff --git a/views/includes/footer.html b/views/includes/footer.html index 4a180c4c2..3b6d1a57e 100644 --- a/views/includes/footer.html +++ b/views/includes/footer.html @@ -22,20 +22,10 @@ - {{> includes/scripts/hideReminders.html }} +{{^isDev}} + +{{> includes/scripts/googleAnalytics.html }} +{{/isDev}} diff --git a/views/includes/head.html b/views/includes/head.html index 069672ff7..acc4b3191 100644 --- a/views/includes/head.html +++ b/views/includes/head.html @@ -1,22 +1,24 @@ - - - - {{#pageMetaDescription}}{{/pageMetaDescription}} - {{#pageMetaKeywords}}{{/pageMetaKeywords}} - + + + +{{#pageMetaDescription}}{{/pageMetaDescription}} +{{#pageMetaKeywords}}{{/pageMetaKeywords}} + - - - - - + + + + + - - - - - - - - - + + + + + + + +{{^isDev}} + + +{{/isDev}} diff --git a/views/includes/scripts/googleAnalytics.html b/views/includes/scripts/googleAnalytics.html new file mode 100644 index 000000000..0cb06026a --- /dev/null +++ b/views/includes/scripts/googleAnalytics.html @@ -0,0 +1,16 @@ +