Custom Performance Metric
A custom performance metric is a user-defined measurement used to track the performance of specific, business-critical elements or interactions that are not captured by standard metrics. They are particularly useful when the Largest Contentful Paint (LCP) metric does not represent the most important element on the page. For instance, you can create a custom metric to measure the render time of a crucial but smaller element like a "Buy Now" button or a stock availability message, or to track the duration of a specific API call. These metrics are created using browser APIs like Element Timing and the User Timing API (performance.mark and performance.measure) and can be collected and analyzed in both Lab Data tools and Field Data (RUM) solutions.
Related web performance terms
- CDN (Content Delivery Network)
A CDN, or Content Delivery Network, is a globally distributed network of servers designed to deliver web content to users quickly and efficiently.
- CORS (Cross-Origin Resource Sharing)
CORS is a browser security feature that uses HTTP headers to manage whether a web page from one domain is allowed to fetch resources from another domain.
- CPU time
CPU time is the amount of time the Central Processing Unit (CPU) of a user's device spends processing the scripts and rendering a webpage.
- Cache
A cache is a high-speed, temporary storage layer designed to store copies of website files (like HTML, images, and scripts) closer to the user.