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

后端 未结 7 1603
野趣味
野趣味 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)

提交回复
热议问题