3 ms·
> Javascript’s XMLHttpRequest is THE web API to retrieve data from a server asynchronously. Uh what? Has he never heard of Fetch: https://developer.mozilla.or
by svnpenn 6y ago
> Javascript’s XMLHttpRequest is THE web API to retrieve data from a server
asynchronously.
Uh what? Has he never heard of Fetch:
https://developer.mozilla.org/Web/API/Fetch_API https://developer.mozilla.org/Web/API/Fetch_API
its been around for at least 5 years, and it returns a Promise.
- simonw 6y agoHe covers fetch() in the section after that, and rightly complains that unlike XHR it doesn't support timeouts at all.