jQuery ajax async: false causes a strange warning?

前端 未结 5 1120
一生所求
一生所求 2020-12-04 02:10

In my JS App, i have many Ajax calls with async: false. I am using latest Chrome browser and in my console below warning appears recently.

<
5条回答
  •  旧巷少年郎
    2020-12-04 02:45

    It is telling you that you run the risk of locking up the browser if the server is down.

    Put up a modal dialog with a cancel button and call the function asynchronously.

提交回复
热议问题