Show jQuery 'waiting' gif when page is loading
I have a moving gif of a loading bar. I had a look around to try to find a way of returning the current completion of a loaded page but it turned out to be overly complicated for my needs.

All I want to do now is display a gif whilst a page is loading, really its just so that the user does not think that the page isnt loading, not to serve any other purpose.

Is there a way to tell if the page is currently loaded or in the process of loading a new page so that I can display the gif at the relevant time?

At the moment, the gif is hidden when page is loaded and shown when a button is pressed. This works, but causes an issue when you go back in the browser to this page, where the gif remains showing.

If anyone knows of a good way of showing these loading symbols on a page, that would be great.
Show jQuery 'waiting' gif when page is loading
===

I have a moving gif of a loading bar. I had a look around to try to find a way of returning the current completion of a loaded page but it turned out to be overly complicated for my needs.

All I want to do now is display a gif whilst a page is loading, really its just so that the user does not think that the page isnt loading, not to serve any other purpose.

Is there a way to tell if the page is currently loaded or in the process of loading a new page so that I can display the gif at the relevant time?

At the moment, the gif is hidden when page is loaded and shown when a button is pressed. This works, but causes an issue when you go back in the browser to this page, where the gif remains showing.

If anyone knows of a good way of showing these loading symbols on a page, that would be great.