Hey, i hope this is in the right spot. I wasn't sure where else to put it.
I am wondering how you make a script that lets user's know the page it loading, and then shows the actual page once the entire page loads. It is used on RyansDistrict website. It will show a loading screen, then once the page has loaded, all the images and content, it shows the page.
I would like it in JS.
P.S.
I had a guess, but I'm not sure. Do you add code that uses something like 'document.write()' and then use that to show the loading screen, and add an 'onload' event that hides the loading screen so when the page first is loaded(before all images), it loads the script and the script makes a 'loading' screen. then once the document has loaded(triggers the 'onload' event), it will hide that loading screen and the content will be revealed. That was just my guess. I'm not sure....
I am wondering how you make a script that lets user's know the page it loading, and then shows the actual page once the entire page loads. It is used on RyansDistrict website. It will show a loading screen, then once the page has loaded, all the images and content, it shows the page.
I would like it in JS.
P.S.
I had a guess, but I'm not sure. Do you add code that uses something like 'document.write()' and then use that to show the loading screen, and add an 'onload' event that hides the loading screen so when the page first is loaded(before all images), it loads the script and the script makes a 'loading' screen. then once the document has loaded(triggers the 'onload' event), it will hide that loading screen and the content will be revealed. That was just my guess. I'm not sure....