title: Check if iframe is loaded inside $(document).ready
body: <p>I want to check if iframe is loaded with the following code:</p>
  
  <pre><code>$(document).ready(function() {
      jQuery('#iframeID').ready(somefunction);
  }
  </code></pre>
  
  <p>It seems that 'somefunction' is called before iframe is loaded (the iframe is empty - just empty html-head-body).</p>
  
  <p>Any idea why this happens?</p>
  
  <p>Thank you.</p>