AJAX HTTP requests

AJAX technology allows you to download part of a page from the server without reloading the entire page.

This technology works via JavaScript. When an event occurs, such as clicking a button, the browser sends an HTTP request to the server, requesting a part of the page in the form of HTML code or data in JSON format. After the server sends a response, the browser displays the new data in the specified block.

You can see AJAX requests with your own eyes in the browser debugger. To do this, select the fetch/xhr filter on the "Network" tab.

Задание 1

Open your browser debugger for any AJAX-powered site.

Задание 2

Watch as new requests appear in the debugger based on event occurrence or time.