What is the difference between asynchronous and synchronous HTTP request?

前端 未结 4 1785
礼貌的吻别
礼貌的吻别 2020-12-04 14:22

What is the difference between asynchronous and synchronous HTTP request?

4条回答
  •  甜味超标
    2020-12-04 14:56

    Synchronous: A synchronous request blocks the client until operation completes. In such case, javascript engine of the browser is blocked.

    Asynchronous An asynchronous request doesn’t block the client i.e. browser is responsive. At that time, user can perform another operations also. In such case, javascript engine of the browser is not blocked.

提交回复
热议问题