GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

`containertimingignore` HTML global attribute

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.

The **`containertimingignore`** [global attribute](/docs/Web/HTML/Reference/Global_attributes) is a boolean attribute that excludes an element and its descendants from contributing to the timing of any ancestor element marked with [`containertiming`](/docs/Web/HTML/Reference/Global_attributes/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

In this example, the div and its contents are excluded from the `"hero"` container's timing, while the image still contributes to it.

```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>
```

For examples of how to use the Container Timing API to get timing information, see PerformanceContainerTiming.

## Specifications

## Browser compatibility

## See also

- [`containertiming`](/docs/Web/HTML/Reference/Global_attributes/containertiming)
- PerformanceContainerTiming
- HTMLElement.containerTimingIgnore

source: MDN Web Docs mirror · page

Cite this

"`containertimingignore` HTML global attribute". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Global_attributes/containertimingignore

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·