Skip to content
Snippets Groups Projects
Select Git revision
  • 82b916fb2e0c47cf90c02d1d155324a36e4886af
  • initial default protected
2 results

reportWebVitals.js

Blame
  • reportWebVitals.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;