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

16 Replies, 1305 Views

XHR fans rise up!

fetch is shiny, but XHR’s `upload.onprogress` is unbeatable for UX. Want a progress bar? XHR’s your buddy.

fetch can kinda do it with `ReadableStream`, but it’s a headache.

Also, XHR’s `timeout` property is simpler than fetch’s `AbortController` circus.

Messages In This Thread



Users browsing this thread: 1 Guest(s)