Introducing Fetch
After identifying common limitations of the XMLHttpRequest object, the Fetch API was standardized to provide a new, better thought out way to implement asynchronous HTTP requests.
The Fetch API is a brand new way to make AJAX calls. It was created to solve many of the problems we developers hack and work around to handle XMLHttpRequest limitations. The primary difference is that Fetch is asynchronous when using Promises.
It first started seeing browser implementations in the Spring of 2016 and now enjoys broad support by all modern browsers. If you have not started using Fetch to make asynchronous HTTP requests, you should start migrating as soon as possible.
Three key features that make Fetch stand apart from the XMLHttpRequest ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access