2
submitted 3 months ago by Corsair@programming.dev to c/webdev@lemmy.world

cross-posted from: https://programming.dev/post/13268260

Hi,

I discovered this webpage
https://developer.mozilla.org/en-US/docs/Glossary/XMLHttpRequest

Where 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

top 2 comments
sorted by: hot top controversial new old
[-] trxxruraxvr@lemmy.world 3 points 3 months ago

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.

[-] victorz@lemmy.world 1 points 3 months ago

A very big step up in developer experience, indeed.

this post was submitted on 26 Apr 2024
2 points (75.0% liked)

WebDev

1127 readers
7 users here now

Community for all things Web Development related.

founded 1 year ago
MODERATORS