Firefox Tomorrow

web api instance property

PerformanceMark: detail property

View on MDN ↗

Available in 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.

performance.mark("dog", { detail: "labrador" });

const dogEntries = performance.getEntriesByName("dog");

dogEntries[0].detail; // labrador

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.