Limited availability
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
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.
A string.
Examples Logging the value ofelementTiming
In this example, adding the elementtiming
attribute to the <img>
element sets the image to be observed.
<img
src="image.jpg"
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
.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4