tabs.discard()

Read More at MDN Docs

Safe to Use

tabs.discard() is not safe to use.

It’s supported by 34% of global browsers.

Browsers

ChromeOct 12, 2016v54.0.0
26%100%
There are no users of Chrome running a supported version.
SafariUnsupported
Safari does not support this feature.
EdgeAug 2, 2016v14.0.0
5%100%
100% of Edge users are running a supported version.
FirefoxJan 23, 2018v58.0.0
2%98%
There are no users of Firefox running a supported version.

Version Breakdown

 
Agent
Support
Adoption
Chrome
Oct 12, 2016 v54.0.0
26%100%
There are no users of Chrome running a supported version.
Oct 12, 2016 – Latest
v54.0.0+
26%100%

Full Support

Only accepts a single tab ID as a parameter, not an array.

The tab ID argument is optional: if it is omitted, the browser discards the least important tab.

The callback is passed a Tab object representing the tab that was discarded.

Tabs whose document contains a beforeunload listener that displays a prompt will be discarded.

Edge
Aug 2, 2016 v14.0.0
5%100%
100% of Edge users are running a supported version.
Aug 2, 2016 – Latest
v14.0.0+
5%100%

Full Support

Firefox
Jan 23, 2018 v58.0.0
2%98%
There are no users of Firefox running a supported version.
Jan 23, 2018 – Latest
v58.0.0+
2%98%

Full Support

Firefox for Android
Unsupported
Firefox for Android does not support this feature.

No Support

Opera
Oct 25, 2016 v41.0.0
1%100%
100% of Opera users are running a supported version.
Oct 25, 2016 – Latest
v41.0.0+
1%100%

Full Support

Only accepts a single tab ID as a parameter, not an array.

The tab ID argument is optional: if it is omitted, the browser discards the least important tab.

The callback is passed a Tab object representing the tab that was discarded.

Tabs whose document contains a beforeunload listener that displays a prompt will be discarded.

Safari
Unsupported
Safari does not support this feature.

No Support

Safari on iOS
Unsupported
Safari on iOS does not support this feature.

No Support

Contribute