When is it appropriate to use synchronous ajax?

后端 未结 4 1471
后悔当初
后悔当初 2020-12-10 02:32

I was just reading another question about jQuery\'s synchronous ajax call, and I got to wondering:

What circumstances make a synchronous version of an

4条回答
  •  渐次进展
    2020-12-10 03:00

    I would venture a guess that it'd be good in a scenario where you want to perform some ajax calls but you have one call that relies on the results of another call. If you perform them synchronously you can wait for the independent to finish before the dependent call fires.

提交回复
热议问题