forked from
whey.party/red-dwarf
an appview-less Bluesky client using Constellation and PDS Queries - https://reddwarf.app/
1const reportWebVitals = (onPerfEntry?: () => void) => {
2 if (onPerfEntry && onPerfEntry instanceof Function) {
3 import("web-vitals").then(({ onCLS, onINP, onFCP, onLCP, onTTFB }) => {
4 onCLS(onPerfEntry);
5 onINP(onPerfEntry);
6 onFCP(onPerfEntry);
7 onLCP(onPerfEntry);
8 onTTFB(onPerfEntry);
9 });
10 }
11};
12
13export default reportWebVitals;