What are the drawbacks of using synchronous ajax call?

前端 未结 4 1313
醉酒成梦
醉酒成梦 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:00

    Well, in addition to the fact that it is very not JavaScript, it has such pleasant effects as COMPLETELY BLOCKING THE BROWSER'S UI. That is not a minor issue.

    Did some research, found cool things. Prototype bases "asynchronous" off of XMLHttpRequest.open. According to Wikipedia, this is not something which is not a required part of the specification and it will prevent "onreadystatechange".

提交回复
热议问题