mirror of
https://github.com/Team4388/ScoutingApp2022.git
synced 2026-06-09 00:38:03 -06:00
14 lines
362 B
React
14 lines
362 B
React
|
|
const reportWebVitals = onPerfEntry => {
|
||
|
|
if (onPerfEntry && onPerfEntry instanceof Function) {
|
||
|
|
import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
|
||
|
|
getCLS(onPerfEntry);
|
||
|
|
getFID(onPerfEntry);
|
||
|
|
getFCP(onPerfEntry);
|
||
|
|
getLCP(onPerfEntry);
|
||
|
|
getTTFB(onPerfEntry);
|
||
|
|
});
|
||
|
|
}
|
||
|
|
};
|
||
|
|
|
||
|
|
export default reportWebVitals;
|