What are the drawbacks of using synchronous ajax call?

前端 未结 4 1310
醉酒成梦
醉酒成梦 2020-11-29 12:41

This question could surely be applied to jQuery but in this case I am referring to Prototype. In the Prototype doc it says,

Since synchronous usage is

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-29 13:17

    Most people frown upon synchronous ajax calls because it'll freeze the UI up until it has completed, as it will not allow code to continue until it's completion. Makes for a stutter in the interface I guess you could say.

提交回复
热议问题