I'm using a plugin in my website for a loading screen that precedes the loading of the html document, but it doesn't show before the html rather after it loads
Code:
Javascript:
$.LoadingOverlay("show", {
// Background
background: "#fff",
// Text
text: "Loading...", // String/Boolean
textClass: "logo_text"
});
setTimeout(function() {
$(document).ready(function() {
$.LoadingOverlay("hide");
});
}, 7000);
The initialization and the calling is that simple, but it shows on the screen after the body loads in a fraction of a second, how can I load it before the body?