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).
On this page
PerformanceMark: detail property
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
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
detail |
78 | 79 | 101 | No | 65 | 14.1 | 79 | 78 | 101 | 56 | 14.5 | 12.0 |
© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/PerformanceMark/detail