Hide page until everything is loaded Advanced
Anything done with jQuery will normally have to wait for document.ready, which is too late IMHO. Put a div on top, like so: <div id=”cover”></div> set some styles: #cover {position: fixed; height: 100%; width: 100%; top:0; left: 0; background: #000; z-index:9999;} and hide it with JS when all elements are loaded: $(window).on(‘load’, function() { $(“#cover”).hide(); … Read more