XMLHttpRequest
supports both synchronous and asynchronous communications. In general, however, asynchronous requests should be preferred to synchronous requests for performance reasons.
Synchronous requests block the execution of code which causes “freezing” on the screen and an unresponsive user experience.
Asynchronous
…
The post how to send Synchronous and asynchronous ajax requests first appeared on Lenix Blog .
This article is reprinted from https://blog.p2hp.com/archives/9163
This site is for inclusion only, and the copyright belongs to the original author.