+ 1

Fetch api

Should i focus on fetch api or xml ajax?

21st Apr 2019, 12:47 PM
Vlada
1 Answer
+ 10
The fetch API is the newer version of XmlHttpRequest. In order to understand fetch properly, I'd recommend learning XmlHttpRequest first as it will give you a steady foundation about requests and responses. After that, you'll need to learn promises in order to use fetch. --- When should you use fetch? If you are certain that your site or web application will not be opened in Internet Explorer, then it is safe to use fetch.
22nd Apr 2019, 7:51 AM
Edwin Pratt
Edwin Pratt - avatar