How to periodically poll the data, but stop the indication of the loading of the Firefox page?

I need my web page to periodically poll the server to get new information every 10 seconds. I have a timer setting (setTimeout) to call the AJAX function to get the data. Upon completion, the AJAX function sets a timer for another 10 seconds.

The problem is that Firefox constantly displays the β€œPage Load Indicator” (Throbbing).

How to periodically poll for new data, but stop the pulsation?

PS If I press the ESC key, the ripple will stop and the timer will continue to move, so this is a rough solution to the problem. I need a way not to enable / embarrass the user.

+4
source share
2 answers

There are several methods for loading the "background" when you do not show the status bar or cursor changes:

XHR Eval and XHR Injection are the only methods that do what you want for FF (and all other browsers). Here you can see the test site: http://stevesouders.com/hpws2/couple-xhr-injection.php

+2
source

You can also look at WebSockets .

It will be faster and there will be no need for a timer.

+1
source

All Articles