News for hackers. Stuff that matters.
Re:Don't trust default timeouts by svnpenn on Saturday August 29, 2020 @11:25AM (#24316715)
> 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

its been around for at least 5 years, and it returns a Promise.

Re:Don't trust default timeouts by simonw on Saturday August 29, 2020 @11:30AM (#24316764)
He covers fetch() in the section after that, and rightly complains that unlike XHR it doesn't support timeouts at all.