Search code examples
htmlajaxgoogle-chromesafaricomet

How to stop showing loading icon in browser


I have a Comet application which send long polling requests (by AJAX) immediately after page load. Request are long waiting, so browser (e.g. Safari or Chrome) will leave his loading icon in loading mode, which makes users feel that the page is still loading.

Is there any way to stop showing loading icon in browser when page already loaded and before AJAX long polling requests in progress ?


Solution

  • We have been successful removing the "loading" indicator in Safari 5.1.5 with ajax long polling requests. Chrome unfortunately still consistently shows the loading indicator. For chrome, our team has chosen to simply change the css cursor value on the entire body element (ex: crosshair or a custom cursor) - a terrible "hack" - but at least the user won't see the loading mouse cursor while they are on the system.