I may be wrong, but I think you just want to hide it on onLoad
, like so:
jQuery(document).onload(function(){
jQuery('#container').hideLoading();
});
or put it in your pageload()
function:
function pageload() {
var endTime = new Date().getTime();
loadTime = endTime - startTime;
jQuery('#container').hideLoading();
}