@inchill/time-to-interactive
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

Time to Interactive

Easily measure performance metrics of time to interactive in JavaScript.

Usage

Install

npm i @inchill/time-to-interactive

or

yarn add @inchill/time-to-interactive

or

pnpm add @inchill/time-to-interactive

After installing it's simple to use:

import { onTTI } from '@inchill/time-to-interactive';

onTTI(res => console.log(res)); // output =>

// {
//     "name": "TTI",
//     "value": 710.2000000001863,
//     "rating": "good",
//     "id": "v3-1697879873463-1156317372000"
// }

Browser Support

The time-to-interactive code will run without error in all major browsers as well as Internet Explorer back to version 11. So, onTTI is currently only available in Chromium-based browsers (e.g. Chrome, Edge, Opera, Samsung Internet).

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i @inchill/time-to-interactive

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

42.3 kB

Total Files

14

Last publish

Collaborators

  • inchill