Skip to content
Snippets Groups Projects
Select Git revision
  • 430c629f639087e5f5ba90c20506b143c971c002
  • main default protected
2 results

reportWebVitals 2.js

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    reportWebVitals 2.js 362 B
    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;