Stop the browser “throbber of doom” while loading comet/server push iframe

前端 未结 4 1565
没有蜡笔的小新
没有蜡笔的小新 2020-11-27 14:07

When using Comet, or Ajax Long Pull techniques - an iframe is usually used. And while that iframe is waiting for the long connection to close, the browser is spinning its th

4条回答
  •  囚心锁ツ
    2020-11-27 14:39

    For me, running a setTimeout on the ajax request solved everything. When I ran the request from document.ready, I got the "throbber of doom". But with setTimeout it doesn't happen. (This fix also works for Chrome).

提交回复
热议问题