JavaScript Element contentvisibilityautostatechange Event
Beginner
5 min read
Updated: Nov 2026
3 examples
Event
Definition
In JavaScript, fires on an element with content-visibility: auto when it starts or stops being relevant to the user and the browser skips (or resumes) rendering its contents (MDN).
Register a listener with addEventListener. Check readiness and browser support before you rely on this event.
Syntax
Listen for contentvisibilityautostatechange. Start with this line.
Set auto. Required for the browser to skip and fire.
Start once. Begin work; the event keeps it in sync with relevance.
Compatibility
Browser Support
Elementcontentvisibilityautostatechange is Baseline Newly available (MDN: since September 2024). Feature-detect before relying on it.
✓ Baseline 2024 · Newly available
contentvisibilityautostatechange
Signals when content-visibility: auto starts or stops skipping an element's contents.
NewNewly available
Google ChromeSupported · Desktop & Mobile
Full support
Mozilla FirefoxSupported · Desktop & Mobile
Full support
Apple SafariSupported · macOS & iOS
Full support
Microsoft EdgeSupported · Chromium
Full support
Internet ExplorerNo native support · Use a polyfill
Polyfill
OperaSupported · Modern versions
Full support
Samsung InternetSupported · Android
Full support
Android WebViewSupported · Modern WebView
Full support
contentvisibilityautostatechangeNewly available
Bottom line: Use in modern evergreen browsers with a feature detect. Pair with content-visibility: auto and pause only expensive rendering work.
Frequently Asked Questions
It fires on an element with content-visibility: auto when the browser starts or stops skipping that element's contents because relevance to the user changed (MDN).
No. MDN marks it as Baseline Newly available (since September 2024). It is not Deprecated, Experimental, or Non-standard.
A ContentVisibilityAutoStateChangeEvent. The key property is skipped: true when the user agent is skipping the element's rendering, false when it is not.
Set content-visibility: auto on the element (stylesheet or element.style.contentVisibility = "auto"). Without auto, this event does not apply.
No. MDN: contents stay semantically relevant (for example for assistive technology). Pause expensive rendering such as canvas loops or timers — do not drop meaningful accessibility updates.
Directly on the element that has content-visibility: auto (MDN canvas example). Do not rely only on a parent bubbling listener.