aboutsummaryrefslogtreecommitdiffstats
path: root/docs/src
diff options
context:
space:
mode:
authorVojta Jina2011-05-26 22:00:45 +0200
committerIgor Minar2011-06-06 22:52:02 -0700
commit16d0354f934c4f2e185ea9692c9d4039474d0b19 (patch)
tree6ecd9a6d4dce92a2d43f05bd9f74939e99843097 /docs/src
parent350ee3110748eed64565bdfe8afd5dc6cbe3641d (diff)
downloadangular.js-16d0354f934c4f2e185ea9692c9d4039474d0b19.tar.bz2
Load GA script using $script loader
Diffstat (limited to 'docs/src')
-rw-r--r--docs/src/templates/index.html10
1 files changed, 1 insertions, 9 deletions
diff --git a/docs/src/templates/index.html b/docs/src/templates/index.html
index 9bdf977b..d6afd478 100644
--- a/docs/src/templates/index.html
+++ b/docs/src/templates/index.html
@@ -30,6 +30,7 @@
'docs-combined.js',
'docs-keywords.js'], function(){
angular.compile(document)();
+ $script(('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js');
});
});
});
@@ -88,14 +89,5 @@
<br class="clearFloat" />
<div id="twoColFooter">© 2010-2011 angular</div>
</div>
-
- <script type="text/javascript">
- // lazy load GA asynchronous tracker
- (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);
- })();
- </script>
</body>
</html>