PerformanceMark: detail property
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since September 2015.
Note: This feature is available in Web Workers.
The read-only detail
property returns arbitrary metadata that was included in the mark upon construction (either when using performance.mark()
or the PerformanceMark()
constructor).
Value
Returns the value it is set to (from markOptions
of performance.mark()
or the PerformanceMark()
constructor).
Examples
The following example demonstrates the detail
property.
js
performance.mark("dog", { detail: "labrador" });
const dogEntries = performance.getEntriesByName("dog");
dogEntries[0].detail; // labrador
Specifications
Specification |
---|
User Timing # dom-performancemark-detail |
Browser compatibility
Report problems with this compatibility data on GitHubdesktop | mobile | server | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
detail |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.