title: How do I build a page preloader for a php page?
body: <p>I want to include a page preloader for all pages on my application. Something like what Gmail displays when its loading the entire page in the background. I don't want a prelaoding bar just the mechanism to display immediately a preloading message while the entire page loads in the background and upon successful load is displayed.</p>
  
  <p>Take for an example the site: <a href="http://www.emirates.com/ae/english/" rel="nofollow noreferrer">http://www.emirates.com/ae/english/</a> just run a search for any flight - you see a preloading message after which teh page is loaded. I don't see any redirects here.</p>
  
  <p>How do I implement this - my site is built using php and tonnes of javascript.</p>