What is the easiest way to implement a page load / loading.gif using jquery, just like any other sites.. It needs white out the page and show loading.gif in the middle of it, until the page loads..
I do not want to write it halfway down the page so it doesn’t even have a purpose, i would like for this to load first thing on the page.. Is there a way i can do this without writing static divs on that page? Preferrably a .js file that does it all without any writing div’s/etc to the page?
What is the easiest way to implement a page load / loading.gif using jquery,
Share
If you mean that when your visitor first loads a page, you get the nothing but a spinny icon until the page is ready ?
What I’d do as put a DIV at the top of the page with your loading GIF, and another place another div around the page content with display:none on it that contains the main body of the page.
Then in your DOM load event:
This would force your loading div to show until the DOM acknowledges that the page is ready.