Remove deprecated FID metric reporting
This is going to be removed from the web-vitals library.
Release-Notes: skip
Google-Bug-Id: b/356252973
Change-Id: Ib601523d7a0529ed33ef18e91ecf82321124a782
diff --git a/polygerrit-ui/app/constants/reporting.ts b/polygerrit-ui/app/constants/reporting.ts
index 643f8aa..24cacf3 100644
--- a/polygerrit-ui/app/constants/reporting.ts
+++ b/polygerrit-ui/app/constants/reporting.ts
@@ -90,8 +90,6 @@
CHECKS_LOAD = 'ChecksLoad',
// Webvitals - Cumulative Layout Shift (CLS): measures visual stability
CLS = 'CLS',
- // WebVitals - First Input Delay (FID): measures interactivity
- FID = 'FID',
// WebVitals - Largest Contentful Paint (LCP): measures loading performance.
LCP = 'LCP',
// WebVitals - Interaction to Next Paint (INP): measures responsiveness
diff --git a/polygerrit-ui/app/services/gr-reporting/gr-reporting_impl.ts b/polygerrit-ui/app/services/gr-reporting/gr-reporting_impl.ts
index 585b714..af83699 100644
--- a/polygerrit-ui/app/services/gr-reporting/gr-reporting_impl.ts
+++ b/polygerrit-ui/app/services/gr-reporting/gr-reporting_impl.ts
@@ -15,7 +15,7 @@
LifeCycle,
Timing,
} from '../../constants/reporting';
-import {onCLS, onFID, onLCP, Metric, onINP} from 'web-vitals';
+import {onCLS, onLCP, Metric, onINP} from 'web-vitals';
import {getEventPath, isElementTarget} from '../../utils/dom-util';
import {Finalizable} from '../../types/types';
@@ -290,7 +290,6 @@
}
onCLS(metric => reportWebVitalMetric(Timing.CLS, metric));
- onFID(metric => reportWebVitalMetric(Timing.FID, metric));
onLCP(metric => reportWebVitalMetric(Timing.LCP, metric));
onINP(metric => reportWebVitalMetric(Timing.INP, metric));
}