containertimingignore HTML global attribute
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The containertimingignore global attribute is a boolean attribute that excludes an element and its descendants from contributing to the timing of any ancestor element marked with containertiming.
For more details, see the PerformanceContainerTiming interface.
In the DOM, this attribute is reflected as HTMLElement.containerTimingIgnore.
Examples
>Excluding a subtree from a container's timing
html
<section containertiming="hero">
<img src="hero.jpg" alt="" />
<div containertimingignore>
<!-- content painted here does not count toward the "hero" container's timing -->
</div>
</section>
Specifications
| Specification |
|---|
| Container Timing API> # dom-htmlelement-containertimingignore> |