How to have AJAX trigger the browser's loading indicator

前端 未结 6 1978
臣服心动
臣服心动 2020-12-05 06:54

I\'m making an ajax-enabled lab scheduling program, and some of the ajax operations aren\'t exactly quick.

In Gmail, when you go to your inbox, send a message, etc.

6条回答
  •  清歌不尽
    2020-12-05 07:18

    I found a related answer here: Browser continues 'loading' after ajax request finishes.

    You can create an iframe and open and close its contentDocument which seems to start and stop the browser's native loading animation. See an example here: http://jsfiddle.net/KSXkS/1/.

提交回复
热议问题