diff options
| author | Vojta Jina | 2011-05-26 22:00:45 +0200 |
|---|---|---|
| committer | Igor Minar | 2011-06-06 22:52:02 -0700 |
| commit | 16d0354f934c4f2e185ea9692c9d4039474d0b19 (patch) | |
| tree | 6ecd9a6d4dce92a2d43f05bd9f74939e99843097 | |
| parent | 350ee3110748eed64565bdfe8afd5dc6cbe3641d (diff) | |
| download | angular.js-16d0354f934c4f2e185ea9692c9d4039474d0b19.tar.bz2 | |
Load GA script using $script loader
| -rw-r--r-- | docs/src/templates/index.html | 10 |
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> |
