title: jquery fadeout, load, fadein
body: <p>I am using JQuery and what I want to happen is.</p>
  
  <p>Div fades out using the fadeOut command.  It then loads content from a url using the load command.  Then once content loaded it fades back in using the fadeIn command.</p>
  
  <p>The code I have is:</p>
  
  <pre><code>$("#myDiv").fadeOut().load('www.someurl.com').fadeIn()
  </code></pre>
  
  <p>However this does not work. It kind of flashes then loads out then loads in.  I think the problem is that the fading is happening before the load is complete.</p>
  
  <p>What should I do</p>
  
  <p>Thanks</p>