2 ms·
Why you use XMLHttpRequest instead of Fetch API (which makes ajax utilities more or less useless)? It would also be nice to have a custom ajax error handling.
by amatera 9y ago
Why you use XMLHttpRequest instead of Fetch API (which makes ajax utilities more or less useless)?
It would also be nice to have a custom ajax error handling. Console logging is nice to have, but sometimes you maybe want to throw in custom error handling.
- zamjs-router 9y ago"Why you use XMLHttpRequest instead of Fetch API" I've been going back and forth on this one. The faster one is dependent upon the browser. https://github.com/arendjr/fetch-vs-xhr-perf https://github.com/arendjr/fetch-vs-xhr-perf
- amatera 9y agoThanks for the explantation. I wasn't aware of this (but i guess this will change when the fetch API is more widely used and vendors are implementing faster methods).