What's the diff between fetch and xhr type? Which one should I use? or Can someone explain the diff b

16 Replies, 1250 Views

OP here—wow, thanks for all the insights!

Tried wrapping fetch in a helper like @user5 suggested, and it’s way cleaner now. Still kinda miss XHR’s progress events tho.

Anyone got a favorite lib for adding progress to fetch? Or is it just easier to fall back to XHR for uploads?

Also, big +1 to the MDN docs shoutout. Lifesaver. 🙏

Messages In This Thread



Users browsing this thread: 1 Guest(s)