title: Jquery .ready() vs window.onload
body: <p>Are there any advantages of using the Jquery ready() function over window.onload?</p>
  
  <pre><code>// Jquery ready
  $(document).ready(function() {
  
  });
  
  // window.onload
  window.onload = function () {
  
  }
  </code></pre>