WindowOrWorkerGlobalScope.fetch()

The fetch() method of the WindowOrWorkerGlobalScope mixin starts the process of fetching a resource from the network. This returns a promise that resolves to the Response object representing the response to your request. The promise does not reject on HTTP errors — instead it only rejects only netw…