Why is AJAX called asynchronous?

Why is AJAX called asynchronous? How does it perform asynchronous communication with the server?

+5
source share
6 answers

It is asynchronous in that it does not block the browser. If you run an Ajax request, the user can still work while the request is waiting for a response. When the server returns a response, a callback starts to process it.

You can do synchronous XMLHttpRequestif you want, and if you do, the browser will block until the request is outstanding (so most of the time this is inappropriate)

+23
source

This is asynchronous, because the client and server work independently for the duration of the function call.

, , . .

, . . " " , , .

+15

, . . , . Ajax , , ,

0

.. "" Javascript, .

0

.

- , , . .

Asynchronous function call - you call the call and then immediately return it to the caller. Then the sum called returns some amount of time undefined. The fact that “undefined amount of time” means that the caller and the callee are no longer synchronized, therefore they are asynchronous.

-1
source

Synchronous always supports sequence when called, but asynchronous does not support sequence.

-1
source

All Articles