setTimeout blocked by continuous AJAX requests?

后端 未结 2 1062
悲哀的现实
悲哀的现实 2021-01-14 19:30

Im fixing an issue on a web application that uses setTimeout to inform the back end to keep the session alive. This works as expected in all scenarios except for the followi

2条回答
  •  悲哀的现实
    2021-01-14 20:28

    As you mentioned that the Ajax calls are sync this is what might be holding your setTimeout from firing. You can try this by making you Ajax calls async.

    Thanks

提交回复
热议问题