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 ] = await getEntries('navigation');
More Examples
const [ firstInpt ] = await getEntries('first-input');
const resources = await getEntries('resource');
Mixed results
const entries = await getEntries('navigation', 'paint');