MCPcopy Create free account
hub / github.com/caesarHQ/textSQL / reportWebVitals

Function reportWebVitals

client/censusGPT/src/reportWebVitals.js:1–13  ·  view source on GitHub ↗
(onPerfEntry)

Source from the content-addressed store, hash-verified

1const reportWebVitals = (onPerfEntry) => {
2 if (onPerfEntry && onPerfEntry instanceof Function) {
3 import('web-vitals').then(
4 ({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
5 getCLS(onPerfEntry)
6 getFID(onPerfEntry)
7 getFCP(onPerfEntry)
8 getLCP(onPerfEntry)
9 getTTFB(onPerfEntry)
10 }
11 )
12 }
13}
14
15export default reportWebVitals

Callers 1

index.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected