Showing
1 changed file
with
0 additions
and
13 deletions
src/reportWebVitals.js
deleted
100644 → 0
1 | -const reportWebVitals = onPerfEntry => { | ||
2 | - if (onPerfEntry && onPerfEntry instanceof Function) { | ||
3 | - import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => { | ||
4 | - getCLS(onPerfEntry); | ||
5 | - getFID(onPerfEntry); | ||
6 | - getFCP(onPerfEntry); | ||
7 | - getLCP(onPerfEntry); | ||
8 | - getTTFB(onPerfEntry); | ||
9 | - }); | ||
10 | - } | ||
11 | -}; | ||
12 | - | ||
13 | -export default reportWebVitals; |
-
Please register or login to post a comment