@inchill/time-to-interactive
Version:
Easily measure performance metrics of time to interactive in JavaScript.
9 lines (8 loc) • 394 B
TypeScript
import { TTIReportCallback } from '../types/index';
/**
* Calculates the [TTI](https://web.dev/tti/) 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 onTTI: (onReport: TTIReportCallback) => void;