IntersectionObserver.disconnect()

This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The IntersectionObserver method disconnect() stops watching all of its target elements for visibility changes.

Syntax

IntersectionObserver.disconnect();

Parameters

None.

Return value

undefined.

Specifications

Specification Status Comment
Intersection Observer
The definition of 'IntersectionObserver.disconnect()' in that specification.
Working Draft Initial definition.

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic Support51151

53 — 552

55

No ? ?
FeatureAndroidChrome for AndroidEdge mobileFirefox for AndroidIE mobileOpera AndroidiOS Safari
Basic Support5151 (Yes) ? No ? ?

1. Available since Windows Insider Preview Build 14986

2. From version 53 until version 55 (exclusive): this feature is behind the dom.IntersectionObserver.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.

See also

Related IntersectionObserver() methods:

Document Tags and Contributors

 Contributors to this page: ebidel, fscholz, Sheppy
 Last updated by: ebidel,