Fetch Request vs. XHR Request
There are a couple ways to make AJAX requests. AJAX stands for Asynchronous JavaScript And XML. We use AJAX requests to fetch data from a server after the webpage has already been loaded, which was a game changer for the web. The flow goes a little something like this… browser creates XMLHttpRequest browser sends HttpRequest to server Server processes HttpRequest Server creates a response and sends the data back to the browser In JavaScript, we send a XHR request by creating an XMLHttpRequest object....