During some tests of a website I'm working on my co-workers and I realized that some pages load exceedingly slow (over 10 seconds). Our client brought up the notion of adding an icon or image to display while it's loading. I was against it, thinking that the code itself was too inefficient for the output it is supposed to produced, and that it can be refactored.
So are loading icons a bad idea for this case? This is not for ajax-related functions, but for regular HTTP requests for loading whole pages. I would rather just make the pages more efficient and bypass the icon idea. I'm also thinking that it's trickier to put these pre-loaded icons into place rather than just clean up the code.