summaryrefslogtreecommitdiff
path: root/frontend/src/reportWebVitals.ts
diff options
context:
space:
mode:
authorKai Stevenson <kai@kaistevenson.com>2025-06-28 13:36:02 -0700
committerKai Stevenson <kai@kaistevenson.com>2025-06-28 13:36:02 -0700
commit452ac1d2a9e238684605acc8820a4dd365e70cf8 (patch)
tree744d0d4fe08edc06ad8c0693f9444021d0aa00ea /frontend/src/reportWebVitals.ts
parent6475f534e7bf457113dcc82d94bfb7ac413f71c4 (diff)
Diffstat (limited to 'frontend/src/reportWebVitals.ts')
-rw-r--r--frontend/src/reportWebVitals.ts15
1 files changed, 0 insertions, 15 deletions
diff --git a/frontend/src/reportWebVitals.ts b/frontend/src/reportWebVitals.ts
deleted file mode 100644
index 49a2a16..0000000
--- a/frontend/src/reportWebVitals.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-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;