Why don't synchronous ajax calls in jquery support timeout?

前端 未结 3 1133
被撕碎了的回忆
被撕碎了的回忆 2021-01-06 06:21

I was reading here that synchronous ajax calls in jquery don\'t time out.

Is this a technical limitation, or just something the authors didn\'t feel like supporting

3条回答
  •  庸人自扰
    2021-01-06 06:32

    Indeed, is something related to the nature of AJAX request, jQuery cannot modify this.

    I think timeout should be implemented in the server side in those cases.

提交回复
热议问题