How can I display a "loading" icon while a slow page loads?
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.