How can I display a "loading" icon while a slow page loads? I have a custom module whose front-end page is slow to load due to extensive database work (no forms, just a bunch of db queries to display some long tables). I want to add the little "loading" icon (similar to the iphone) while the page is loading, to show users the page is working. I've seen it on some of the Views administration pages, but I can't seem to find the code for it. Is the display code done with jQuery or a drupal module? How do I add the code to my module/page? Thanks in advance!
There is Page Throbber module which suits your requirement.


  Page Throbber is a simple utility module which lets the site developer
  display a spinning "throbber" and a custom message to display when
  loading up pages which they know will be slow to load.