title: Auto scroll to div id on page load
body: <p>So I've got my page set up with an intro section, and after a set time the browser auto scrolls to a specified div which works correctly. What I'd like to do is have it run when the page is fully loaded as opposed to immediately.
  This is the existing code which works fine.</p>
  
  <pre><code>setTimeout(function(){
  $(function() {
  $('html, body').animate({
  scrollTop: $('#myDiv').offset().top}, 2800);
  });
  },1300);
  </code></pre>
  
  <p>And this is what I've tried to make it run on page load instead of immediately. Which stops the scroll altogether</p>
  
  <pre><code>$(window).load(function(){
  $(function() {
  $('html, body').animate({
  scrollTop: $('#myDiv').offset().top}, 2800);
  });
  },1300);
  </code></pre>