From 0e539f557d9f6d00cb1113b1f840aed9240df351 Mon Sep 17 00:00:00 2001 From: wBruno Date: Sun, 23 Feb 2014 11:48:05 -0300 Subject: [PATCH] optimize js --- footer.php | 4 ++-- header.php | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/footer.php b/footer.php index 443b3db..5b9747f 100755 --- a/footer.php +++ b/footer.php @@ -33,8 +33,8 @@ (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; - ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; - var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); + ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; + var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); diff --git a/header.php b/header.php index 99efd51..d1cb672 100755 --- a/header.php +++ b/header.php @@ -43,6 +43,8 @@ + + @@ -50,7 +52,7 @@