JavaScript Fetch: Abort

2021 VietMX 1

As we know, fetch returns a promise. And JavaScript generally has no concept of “aborting” a promise. So how can we cancel an ongoing fetch? E.g. if the […]

JavaScript Fetch: Download progress

2021 VietMX 0

The fetch method allows to track download progress. Please note: there’s currently no way for fetch to track upload progress. For that purpose, please use XMLHttpRequest, we’ll cover it later. To track download progress, […]

JavaScript Fetch

2021 VietMX 1

1. Overview JavaScript can send network requests to the server and load new information whenever it’s needed. For example, we can use a network request […]