Skip to content

👓 A straight-forward interface to retrieve browser performance timing metrics.

License

Notifications You must be signed in to change notification settings

omrilotan/performance-timing

Repository files navigation

performance-timing

A straight-forward interface to retrieving performance timing metrics.

What does it do for me?

Retrieve metrics if they are available, otherwise, set up an observer to be resolved with extracted entries, then disconnected.

import{getEntries}from'performance-timing';

const[navigation]=awaitgetEntries('navigation');// PerformanceNavigationTiming{}

More Examples

const[firstInpt]=awaitgetEntries('first-input');// PerformanceEventTiming{}
constresources=awaitgetEntries('resource');// [PerformanceResourceTiming{},...]

Mixed results

constentries=awaitgetEntries('navigation','paint');

About

👓 A straight-forward interface to retrieve browser performance timing metrics.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published