diff options
| author | physcik <mynameisgennadiy@vk.com> | 2026-04-10 19:30:54 +0500 |
|---|---|---|
| committer | physcik <mynameisgennadiy@vk.com> | 2026-04-10 19:30:54 +0500 |
| commit | fd5b5fedfec1921930257b1003245f3740536556 (patch) | |
| tree | 29ab224ab0ae249f7e080f7be3d5373482e80a75 /front/src/reportWebVitals.js | |
| parent | d5df390bc6e4d2860cf0bb36ffe8e0584ed96f5d (diff) | |
Front fix
Diffstat (limited to 'front/src/reportWebVitals.js')
| -rw-r--r-- | front/src/reportWebVitals.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/front/src/reportWebVitals.js b/front/src/reportWebVitals.js new file mode 100644 index 0000000..5253d3a --- /dev/null +++ b/front/src/reportWebVitals.js @@ -0,0 +1,13 @@ +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; |
