var loader = $('<div id="loading-container"><div id="loading-inner"><p id="percent">100</p><div id="bar"><div id="bar-percent"></div></div></div></div>')
$('body').append(loader);
$(window).on('load', function(){
setTimeout(removeLoader, 2750); //wait for page load PLUS x.
});
function removeLoader(){
//fadeUp.play();
loader.fadeOut(250, function() {
// fadeOut complete. Remove the loading div
loader.remove(); //makes page more lightweight
});
}