Differentiate between Synchronous and Asynchronous Ajax requests.

devquora
devquora

Posted On: Feb 22, 2018

 

Synchronous Ajax requests: In this, the script stops and waits for the server to reply before continuing. In the web application world, one has to happen after the other, i.e. the interaction between the customer and the server is synchronous. Synchronous is not recommended as it blocks/hangs the page until the response is received from the server.

Asynchronous Ajax requests handle the reply as and when it comes and allows the page to continue to be processed. Under Asynchronous, if there is any problem in the request it can be modified and recovered. The request doesn’t block the client as the browser is responsive. The user can perform other operations as well.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Ajax Interview Questions

    Explain What is Ajax?

    Ajax is considered to be a developer’s best friend because it offers several benefits to him such as updating the web..

    Ajax Interview Questions

    List some advantages and disadvantages of using Ajax.

    Ajax is a very easy concept if one has a sound knowledge of JavaScript. It uses JavaScript functions to call methods fro..

    Ajax Interview Questions

    What are different readyState in Ajax.

    There are total 5 ready state in Ajax:Value State Description0 UNSET Client has been created. Open() not yet calle..