U
U
uRoot2019-01-06 22:02:07
JavaScript
uRoot, 2019-01-06 22:02:07

XMLHttpRequest or fetch?

Should we now phase out the deprecated XMLHttpRequest in favor of fetch ?
Or each task has its own method? What tangible benefits of fetch would you highlight?

Browser support for fetch is pretty good.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Askhat Bikmetov, 2019-01-06
@uroot

In an ideal world, you have an http client abstraction in which you can easily change the implementation without changing the rest of the code

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question