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.
14 lines
745 B
14 lines
745 B
|
2 months ago
|
import { FIDReportCallback, MetricRatingThresholds, ReportOpts } from './types.js';
|
||
|
|
/** Thresholds for FID. See https://web.dev/fid/#what-is-a-good-fid-score */
|
||
|
|
export declare const FIDThresholds: MetricRatingThresholds;
|
||
|
|
/**
|
||
|
|
* Calculates the [FID](https://web.dev/fid/) value for the current page and
|
||
|
|
* calls the `callback` function once the value is ready, along with the
|
||
|
|
* relevant `first-input` performance entry used to determine the value. The
|
||
|
|
* reported value is a `DOMHighResTimeStamp`.
|
||
|
|
*
|
||
|
|
* _**Important:** since FID is only reported after the user interacts with the
|
||
|
|
* page, it's possible that it will not be reported for some page loads._
|
||
|
|
*/
|
||
|
|
export declare const onFID: (onReport: FIDReportCallback, opts?: ReportOpts) => void;
|