Browser waits for ajax call to complete even after abort has been called (jQuery)

后端 未结 7 1550
野趣味
野趣味 2020-12-01 05:27

I have some (potentially) long-running ajax calls that I would like to abort if the user navigates to another page. The following jQuery code calls abort on all pending XMLH

相关标签:
7条回答
  • 2020-12-01 06:13

    Are you sure that you are using an asychronous request? If the browser blocks during the entire request, you are using a synchronous request (async parameter is false)

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