Not sure if this is the best place for this query or not.
What I'm looking for is some code that I can use on a layer.
Basically I want to show the layer when the page is first opened and when the page has fully loaded hide it again.

The reason for this is that the page in question is taking longer than I'd like to load in the data but its alot of calculations etc on other servers and i can't do anything about the time it's taking. So this is basically so I can show the user a msg to let them know that the site is dealing with their query and not broken.

If anyone has any ideas or can point me in the right direction with this one it'd be brilliant.