title: jQuery events .load(), .ready(), .unload()
body: <p>Just a simple question, for the jQuery event. Are the .load(), .ready() and .unload() run in order when the DOM is loaded? The answer seems yes when I see the jQuery Documentation.</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  
      $(window).load(function () {
          // run code
          initializeCode();
      });
  
      $(document).ready(function() {
          //run code that MUST be after initialize
      });
  
      $(window).unload(function() {
          Cleanup();
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>However, the code inside the .ready() is execute before the initializeCode(); is execute, so I feel really strange. And now I have to place my code inside the .onload() method and just after the initializeCode(); line, which means to be inside the .ready() block.</p>
  
  <p>Could someone explain me more about this, as I am new to jQuery?</p>