Glossary Web Development AJAX (Asynchronous JavaScript and XML)

AJAX (Asynchronous JavaScript and XML)

AJAX is a technique that lets a web page send and receive data from a server without reloading the entire page. Allowing parts of a page to update instantly while the rest stays the same.

Common Examples of AJAX in Action

  • Submitting a form and seeing a success message without a page reload
  • Live search results that update as you type
  • Loading more comments or posts without refreshing the page
  • Updating a shopping cart total instantly

Live Examples

Here's a super simple example of using AJAX to load data from a server without refreshing the page:

AJAX vs Traditional Requests

Traditional AJAX
Full page reload Partial page update
Slower user experience Faster and smoother
Interrupts user flow Keeps users engaged

When AJAX Makes Sense

  • Updating small parts of a page
  • Improving perceived performance
  • Keeping users in flow