开发者

Preventing browser loading indicator with Chrome + GWT-rpc

开发者 https://www.devze.com 2022-12-24 23:30 出处:网络
I\'m writing a ajax chatting webapp, just to test working with GWT. To simulate server side push of chat messages from the server to the browser, I have a XHR request running behind. It all works fin

I'm writing a ajax chatting webapp, just to test working with GWT.

To simulate server side push of chat messages from the server to the browser, I have a XHR request running behind. It all works fine - except on Chrome, the browser is displaying a loading icon (a spinner) because of the XHR request on background.

Is there any way to avoid this? I've tested it in Firefox, and it doesn't display such behavior.

EDIT - I found the solution. http://开发者_StackOverflow中文版groups.google.com/group/google-web-toolkit/browse_thread/thread/a0330cb47e05c485?fwc=2

quoting the GWT groiup post:

Chrome shows the loading indicator if connection was made immediately from the "body onload()", i.e. from onModuleLoad().


Chrome shows the loading indicator if connection was made immediately from the "body onload()", i.e. from onModuleLoad().


No, there is now way to disable this.

All AJAX requests cause Chrome to display this. I'm guessing it's for security reasons. (The user is aware of any AJAX requests that he/she might not be aware of.) Also, it indicates that data is being fetched - a type of status indicator.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号