When is it appropriate to use synchronous ajax?

后端 未结 4 1448
后悔当初
后悔当初 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 02:52

    In sum, please do not use synchronous requests as @Brandon says: they are a cheap/easy/quick way to avoid making a callback. In addition, modern browsers show warnings if synchronous requests are made and we do not like that. Make your world asynchronous.

提交回复
热议问题