javascript - Browser loading indicator never stops spinning IE10 -


on site have iframe self executing javascript chatt function in it. script have few setintervals, callbacks , communicate nodejs server using pushstream.

it works fine in browsers in, ie10 browser loading indicator never stops spinning, script still works fine, how indicator stop?

what different in ie10 others?

the script few hundred lines, here file. http://westerlundh.se/cc.js

thanks

if have code runs long time page ready execute js can cause browser keep displaying loading indicator. safari does/used suffer issue too. quick, little ugly, solution surround initial code in settimeout. instance

settimeout(function(){     //the code run when page loads },10); 

this force ie believing code needed run page loaded has been run. common cause of (and appears case you) can ajax polling. starting first long-poll when page loaded causes loading icon display duration of ajax request being open, starting poll again extends length of time loading icon shown, looking page not finished loading.


Comments