cross-posted from: https://programming.dev/post/13268260
Hi,
I discovered this webpage
https://developer.mozilla.org/en-US/docs/Glossary/XMLHttpRequestWhere it say
The Fetch API is the modern replacement for XMLHttpRequest.
Without further explain on why so…
Did you (yourself) migrated from XHR to The Fetch API ? and is it better ? or do you know any (not bias) article about it ?
What about performances etc…
Thanks
I did, just being able to use promises is already worth it. Performance mostly depends on the server you’re calling so I didn’t really look at that. Fetch is just a lot more user friendly.
A very big step up in developer experience, indeed.