title: jQuery - Only run function once element has loaded
body: <p>I am using jQuery to calculate some sizings and add CSS to an element like this..</p>
  
  <pre><code>jQuery(document).ready(function(){
      jQuery(document.body).css("margin-top", jQuery(".myelement").height());
  });
  </code></pre>
  
  <p>The problem is that the function fires before the myelement has actually appeared so cant get the height.</p>
  
  <p>Is there a way to wait until / if .myelement is rendered before running the function? I did look at load but I think that is now deprecated</p>