way to load javascript code in web page
<p>I prepare a project with a simple webpage, canvas, and javascript files that run game in the canvas. I want load my code when page starts, what is best way?</p>

<ol>
<li>put body onload?</li>
<li>startup code in body of .js file (not in function)?</li>
<li>attach to window load event?</li>
<li>use some jquery capability?</li>
</ol>

<p>Thanks!</p>
