Spin effect not working during ajax call

后端 未结 1 1482
终归单人心
终归单人心 2021-01-28 07:13

I have the following code.. But the spin effect doesn\'t happen until the ajax call is finished (which is pretty much useless)

$.ajax({
      type:\"GET\",
              


        
相关标签:
1条回答
  • 2021-01-28 07:34

    Remove async:false from your $.ajax call. You are making it synchronous instead of asynchronous (the A in AJAX) and hanging the browser while it waits for a response.

    0 讨论(0)
提交回复
热议问题