title: Check if file has been loaded using .load()
body: <p>How would I check if file has been loaded in a div, and if not, try again (reload it)</p>
  
  <p>I'm using .load() and fancybox to load the file in.</p>
  
  <pre><code>  $('a.button-1').click(function(){
  
         $('#data').load('form1.html');
  
  });
  
   $('a.button-2').click(function(){
  
         $('#data').load('form2.html');
  
  });   
  </code></pre>