If you are using modern JavaScript you probably should be using Fetch. It also has a big role to play in the action of a ServiceWorker. The Fetch API is a replacement for the XMLHttpRequest function and perhaps the jQuery Ajax function. There are a number of new features in JavaScript that make good use of promises and hence async and await.
0 Comments
Leave a Reply. |