Hello everyone I got trapped when Im using jquery loading some content into my page. The code is like this:
$("#holder").fadeout();
$("#holder").load("test.html", callbackfn);
function callbackfn(){
$("#holder").fadein();
}
test.html
<div style="background-image:url(1.jpg);">test</div>
That's the main idea, and actually it works quiet fine except that #holder is faded in before pictures are fully loaded. How can I make sure everything in test.html is fully loaded before #holder is displayed?