web api instance property
Element: elementTiming property
Limited availability
The elementTiming property of the Element interface identifies elements for observation in the PerformanceElementTiming API. The elementTiming property reflects the value of the elementtiming attribute.
Value
A string.
Examples
Logging the value of elementTiming
In this example, adding the elementtiming attribute to the <img> element sets the image to be observed.
<img
src="/firefox/mdn-asset-missing.svg"
alt="a nice image"
elementtiming="big-image"
id="myImage" />
You can get the string value of the elementtiming HTML attribute by calling el.elementTiming.
const el = document.getElementById("myImage");
console.log(el.elementTiming); // "big-image"
For a more complete example on how to use the Element Timing API, see PerformanceElementTiming.
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.
See also
PerformanceElementTimingelementtimingHTML attribute