I'm loading a static HTML document using the load function:
//load the specific content $("#content-l").empty(); $("#content-l").hide(); $("#content-l").load("./index.html #content-l:first", function(){ $("#content-l").show(); });
What I am trying to do is display an image in the div's container until the HTML page is loaded completely. Is there a way to do this using the load function()?