I need a little help. I do not know where to start. I need to add a page loader to my website. I first submit a form it then uses SimpleXML to call an exterior xml sheet with expedia.. It takes a minute to load, so I would like to add the image loader to this page. But how do I go about doing this? I have looked on google and could not find any useful info.
I need it to show the loader until the COMPLETE page has loaded.
This has many solutions, but a simple one is to:
1- Create an overlay DIV with your loader stuff and prepend to BODY;
2- Add an event listener for
document.ready event that hides this DIV.
(code typos fixed)