You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
725 B
13 lines
725 B
import { LCPReportCallbackWithAttribution, ReportOpts } from '../types.js';
|
|
/**
|
|
* Calculates the [LCP](https://web.dev/lcp/) value for the current page and
|
|
* calls the `callback` function once the value is ready (along with the
|
|
* relevant `largest-contentful-paint` performance entry used to determine the
|
|
* value). The reported value is a `DOMHighResTimeStamp`.
|
|
*
|
|
* If the `reportAllChanges` configuration option is set to `true`, the
|
|
* `callback` function will be called any time a new `largest-contentful-paint`
|
|
* performance entry is dispatched, or once the final value of the metric has
|
|
* been determined.
|
|
*/
|
|
export declare const onLCP: (onReport: LCPReportCallbackWithAttribution, opts?: ReportOpts) => void;
|
|
|