Search code examples
twistedtwisted.web

what does a rotating circle in left corner of browser tab mean?


My chat program runs on a twisted server.When I open a page the icon place in tab has a rotating circle for entire time . I know that means an unfinished request .

Can anyone explain me what exactly is happening here ,its consequences and if possible a remedy ?


Solution

  • rotating circle means one of the requestes issued by the browser is unfinished. In your scenario your webclient might be long polling, one of the remedies is to use iframe for such requests, other fix is to start your polling request by setTimeout, look here

    In many browsers XMLHttpRequest doesn't set the loading status