3 ms·
That's only mostly true. If you are working with anything that needs to support older browsers (which, for example, is unfortunately still a requirement in many
by amflare 4y ago
That's only mostly true. If you are working with anything that needs to support older browsers (which, for example, is unfortunately still a requirement in many medical, government, and financial sectors), then you can't use `fetch()`.
- duskwuff 4y agoYou can polyfill fetch() if that's a concern: https://github.com/github/fetch https://github.com/github/fetch
- no_way 4y agoYou can use fetch polyfill which woyld be better choice since its easier to remove polyfill than refactor your whole site once you don't need to support those old browsers anymore.
- amflare 4y agoSure. I could also pull in axios or just bite the bullet and use the XMLHttpRequest API. The point isn't that jQuery is the only way to solve the problem, but rather that it still has a value proposition.
- LudwigNagasena 4y agoBeing a “polyfill” with idiosyncratic API doesn’t sound like a good value proposition.
- LudwigNagasena 4y agoBabel?