jquery html() callback function
<p>This question has been asked a coupla times but not answered in such a way that it can help me in my specific issue. From a nav list, on click of an item I m loading some HTML content into a DIV using the .html() function. There is no ajax request. The HTML content has images. Hence it can take a moment to load up. And since .html() is a synchronous operation, the next line will immediately execute.</p>

<p>As soon as I load contents using .html(), 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 wont scroll all the way.</p>

<p>I do not want to use setInterval. Is there a solution for this? Is there some other function in jQuery that acts like the html() function but has some sort of callback feature?</p>

<p>Thank you.</p>
