AJAX (Asynchronous JavaScript and XML)
Written by Andy Sim
Last updated
AJAX is a technique that lets a web page request or send data to the server in the background, without reloading the whole page. The page updates only the part that changed.
JavaScript sends a request, receives the answer (usually as JSON) and changes part of the screen. It is behind features such as live search suggestions, "load more" buttons, form checks and chat boxes. Because content arrives after the page loads, it needs care so that search engines can still read it.
Examples
- A search box that shows suggestions while you type.
- A "like" button that registers instantly.
- A shopping cart that updates without leaving the page.
Why it matters for your website
AJAX makes a site feel quick and modern. If important text appears only after a script runs, make sure it is also available to search engines and still works if a script fails.