3 ms·
"There's nothing hacky/quirky about comet... long polling XHR." Now, unless I'm misinformed, long polling XHR does not work in Internet Explorer, although you
by jeresig 18y ago
"There's nothing hacky/quirky about comet... long polling XHR."
Now, unless I'm misinformed, long polling XHR does not work in Internet Explorer, although you do list it as a supported platform:
http://wiki.mibbit.com/index.php/Platforms http://wiki.mibbit.com/index.php/Platforms
Could you expand on this at all?
- axod 18y agoIt's absolutely supported. IE will wait patiently for data to be received, just like other browsers. It'll do keep-alive also with XHR, so you get that benefit as well. You can also remove some HTTP headers in js to get some bandwidth optimization :) One possibility you may be thinking of is XHR reuse, which is a pain in IE, as far as I remember there's a couple of bugs if you try to reuse the same XHR object. There's hoops to jump through depending on the state or something, and it's just more reliable to not reuse the object on IE. At the moment, I create a new XHR object for each request, to be sure there aren't issues with IE (I believe XHR reuse isn't an issue on other browsers).