Compared to XMLHttpRequest
and the libraries built around it, like JQuery.ajax
, the fetch API
defines a more modern and cleaner way of performing asynchronous requests, based on the use of promises.
This is a companion discussion topic for the original entry at https://linuxconfig.org/introduction-to-the-javascript-fetch-api