Possible Duplicate:
Where is the best place to put <script> tags in HTML markup?
Where should I put my external JavaScript file? I know that people put it at the end of the body tag to make the web page look like it loads faster. But is there any cons about putting it at the end?
And would this be a good practice to put the JavaScript with the Google Analytics code?
<body>
// Everything else over here ... conent etc..
<script src="myjavascript.js" type="text/javascript"></script>
<script type="text/javascript">
// google analytics code
</script>
</body>