UNPKG

web-vitals

Version:

Easily measure performance metrics in JavaScript

9 lines (8 loc) 462 B
import { FCPMetricWithAttribution, ReportOpts } from '../types.js'; /** * Calculates the [FCP](https://web.dev/articles/fcp) value for the current page and * calls the `callback` function once the value is ready, along with the * relevant `paint` performance entry used to determine the value. The reported * value is a `DOMHighResTimeStamp`. */ export declare const onFCP: (onReport: (metric: FCPMetricWithAttribution) => void, opts?: ReportOpts) => void;