Remove unused JavaScript on the page bottom

This commit is contained in:
Prem Sichanugrist
2012-05-10 21:19:24 -04:00
parent 59b453488a
commit d393a503e6
3 changed files with 7 additions and 7 deletions

View File

@@ -7,12 +7,10 @@
</%block>
<%block name="js_extra">
##Is there a reason this isn't in header_extra? Is it important that the javascript is at the bottom of the generated document?
<!-- TODO: http://docs.jquery.com/Plugins/Validation -->
<script type="text/javascript">
$(function() {
${init}
});
document.write('\x3Cscript type="text/javascript" src="' +
document.location.protocol + '//www.youtube.com/player_api">\x3C/script>');
</script>
</%block>