You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

reportWebVitals.js 362B

12345678910111213
  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. export default reportWebVitals;