Download src/reportWebVitals.ts from pakdeveloper/Converto_Web_ReactApp: direct link, hf CLI and curl.
- Browser
- Download file 425 Bytes
-
https://huggingface.co/spaces/pakdeveloper/Converto_Web_ReactApp/resolve/main/src/reportWebVitals.ts
- Command line
-
hf download hf://spaces/pakdeveloper/Converto_Web_ReactApp/src/reportWebVitals.ts
-
curl -L -o reportWebVitals.ts https://huggingface.co/spaces/pakdeveloper/Converto_Web_ReactApp/resolve/main/src/reportWebVitals.ts
425 Bytes
| import { ReportHandler } from 'web-vitals'; | |
| const reportWebVitals = (onPerfEntry?: ReportHandler) => { | |
| 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; | |