PerformanceMeasure: 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 July 2022.
Note: This feature is available in Web Workers.
The read-only detail property returns arbitrary metadata that was included in the mark upon construction (when using performance.measure().
Value
Returns the value it was set to (from markOptions of performance.measure()).
Examples
The following example demonstrates the detail property.
js
performance.measure("dog", { detail: "labrador", start: 0, end: 12345 });
const dogEntries = performance.getEntriesByName("dog");
dogEntries[0].detail; // labrador
Specifications
| Specification | 
|---|
| User Timing> # dom-performancemeasure-detail>  | 
            
Browser compatibility
Loading…