Default the contents to display:none
and then have an event handler that sets it to display:block
or similar after it's fully loaded. Then have a div that's set to display:block
with "Loading" in it, and set it to display:none
in the same event handler as before.