title: jquery html() callback function
body: <p>This question has been asked a couple times but not answered in such a way that it can help me with my specific issue. From a nav list, on click of an item, I'm loading some HTML content into a div using the <code>.html()</code> function. There is no ajax request. The HTML content has images. Hence it can take a moment to load up. And since <code>.html()</code> is a synchronous operation, the next line will immediately execute.</p>
  
  <p>As soon as I load contents using <code>.html()</code>, I'm enabling a third party custom scrollbar called tinyscrollbar. If the loaded content had images, then the scrollbar calculates the height of the content div a little earlier than the images are loaded resulting into a scrollbar that won't scroll all the way.</p>
  
  <p>I do not want to use <code>.setInterval()</code>. Is there a solution for this? Is there some other function in jQuery that acts like the <code>.html()</code> function but has some sort of callback feature?</p>
  
  <p>Thank you.</p>