Element.elementTiming is a string that identifies an element for observation in the PerformanceElementTiming API. It reflects the HTML elementtiming attribute (MDN).
Read the notes below before you get or set this property. Prefer feature detection when support is limited.
Syntax
Use el.elementTiming. Start with this line.
JavaScript
element.elementTiming
Call
What it does
element.elementTiming
Primary signature.
Built into the browser. Read or assign el.elementTiming — no import required.
Library declarations
JavaScript
element.elementTiming
Parameters
Parameter
Description
Identifier string
Required. Label for the timed element
Return Value
Return Value
Description
*
String identifier
JavaScript Examples
Example 1 — Read the Identifier
Read elementTiming from an image marked in HTML (MDN shape).
Read when available. Use || "(empty)" so a missing mark is obvious.
Fallback. Log or skip timing features on unsupported engines.
Rule. Never assume Firefox/Safari expose this property today.
Compatibility
Browser Support
Element.elementTiming is Experimental with Limited availability (MDN: not Baseline). Primarily Chromium-based browsers; Firefox and Safari generally lack Element Timing.
✓ Experimental · Limited
Element.elementTiming
String reflecting the elementtiming attribute — opt-in label for PerformanceElementTiming.
LimitedNot Baseline
Google ChromeAll versions · Desktop & Mobile
Full support
Mozilla FirefoxAll versions · Desktop & Mobile
Full support
Apple SafariAll versions · macOS & iOS
Full support
Microsoft EdgeAll versions · Chromium & Legacy
Full support
Internet ExplorerIE 6+ · Legacy environments
Full support
OperaAll modern versions
Full support
elementTimingDetect first
Bottom line: Gate with if ("elementTiming" in Element.prototype). Use Element Timing as an enhancement for Chromium analytics, not as a hard dependency.
Frequently Asked Questions
It identifies an element for observation by the PerformanceElementTiming API. The property reflects the elementtiming HTML attribute as a string.
MDN marks Element.elementTiming as Experimental and Limited availability (not Baseline). It is not Deprecated or Non-standard. Always feature-detect before production use.
Add the elementtiming attribute in HTML (for example elementtiming="big-image") or set el.elementTiming = "big-image" in JavaScript where supported.
A string — the identifier you chose for that element. An empty string when the attribute is missing.
Primarily Chromium-based browsers. Firefox and Safari generally do not support Element Timing yet — check MDN compatibility and feature-detect.
Observe PerformanceEntry records of type "element" with PerformanceObserver, or use PerformanceElementTiming entries. See MDN PerformanceElementTiming for the full flow.