Writing Warmup: AJAX

tuzgai posted at

AJAX stands for Asynchronous Javascript and XML. It is a collection of technologies supporting client-side rendering. The web client requests data from the server rather than a full layout, and the client is responsible for determining how the server's response should be presented. The client makes calls to a server API using Javascript and the server returns its response in XML or JSON.

An important thing to note is that AJAX is not a specific language or technology on its own, instead it describes a specific strategy of exchanging data between client and server. AJAX allows the client to update it's presentation of information in response to new states from the server or input from the user without refreshing the page. It's a great tool for interactive pages where smooth Javascript/CSS transitions can provide a pleasant user experience.

Additionally, since AJAX is asynchronous, the client can continue to function while it waits for an AJAX response. In comparison, with a server side rendering model, after a request is sent to the server the client pretty much has to wait for the server to send a new page back for it to load. While a service-side model can be more stable, this wait can lead to a choppy user experience.

Last edited Permalink