coderef

Abortable fetchBaseline · Widely available

If you construct a fetch request with an AbortSignal, you can cancel the request.

Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Mar 25, 2019. Widely available since Sep 25, 2021.

Browser support

DesktopChrome
1–65Not supported
66+Supportedsince Apr 17, 2018
Current: 155
Edge
12–15Not supported
16+Supportedsince Oct 17, 2017
Current: 154
Firefox
1–56Not supported
57+Supportedsince Nov 14, 2017
Current: 157
Safari
1–12Not supported
12.1+Supportedsince Mar 25, 2019
Current: 27
MobileChrome Android
18–65Not supported
66+Supportedsince Apr 17, 2018
Current: 155
Firefox Android
4–56Not supported
57+Supportedsince Nov 28, 2017
Current: 157
Safari iOS
1–12Not supported
12.2+Supportedsince Mar 25, 2019
Current: 27

How to use

This feature is Baseline widely available — use it freely, no fallback needed.

Example

Full syntax and examples are on MDN: signal.

Feature detection

JS · check before using
if ("fetch" in globalThis && "options_parameter" in fetch.prototype) {
  // fetch.options_parameter is available
}

Sub-features

Support for each part of the feature (2). The overall table above shows when the whole feature works.

Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
Request.signal66165712.1665712.2
fetch.options_parameter.signal66165711.1665711.3