title: jQuery function after .append
body: <p>How to call a function after jQuery <code>.append</code> is completely done?</p>
  
  <p>Here's an example:</p>
  
  <pre><code>$("#root").append(child, function(){
     // Action after append is completly done
  });
  </code></pre>
  
  <p>The issue: When a complex DOM structure is appended, calculation of new size of the root element within the append function callback is wrong. Assumptions are that the DOM in still not completely loaded, only the first child of the added complex DOM is.</p>