twitter twitter - 1 year ago 69
Ajax Question

in .ajax calls, is async: true assumed by default?

Some of the code I've seen specifies

and other code
. If I don't declare
at all, does it default to
, so ajax calls are by default asynchronous?

Answer Source

Looking at the documentation of jQuery.ajax (quoting) :

By default, all requests are sent asynchronously (i.e. this is set to true by default). If you need synchronous requests, set this option to false.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download