Skip to content

fix: remove INP metric tracking from performance and vitals modules#165

Merged
dermatz merged 1 commit intomainfrom
fix/remove-inp-metric
Apr 11, 2026
Merged

fix: remove INP metric tracking from performance and vitals modules#165
dermatz merged 1 commit intomainfrom
fix/remove-inp-metric

Conversation

@dermatz
Copy link
Copy Markdown
Member

@dermatz dermatz commented Apr 11, 2026

This pull request removes support for the INP (Interaction to Next Paint) performance metric from the inspector's frontend code. The changes eliminate INP data collection, storage, and display, simplifying the performance metrics logic.

Performance Metrics Removal

  • Removed the INP metric from the webVitals data structure in inspector.js, so INP values are no longer tracked.
  • Stopped collecting INP data by removing the PerformanceObserver for the 'first-input' event in vitals.js.
  • Removed the renderINPMetric function and its invocation from performance.js, so INP is no longer displayed in the UI. [1] [2]

Copilot AI review requested due to automatic review settings April 11, 2026 14:38
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes client-side support for the INP (Interaction to Next Paint) metric from the MageForge Inspector frontend, simplifying web-vitals collection and the performance UI.

Changes:

  • Removed INP tracking from the webVitals state structure.
  • Stopped collecting INP data by removing the PerformanceObserver for first-input.
  • Removed INP rendering from the Browser Metrics UI (method + call site).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/view/frontend/web/js/inspector/vitals.js Removes INP collection logic (first-input observer) from vitals tracking.
src/view/frontend/web/js/inspector/performance.js Removes INP metric rendering (call site and renderINPMetric implementation).
src/view/frontend/web/js/inspector.js Drops the inp field from the webVitals state initialization.

@dermatz dermatz merged commit 6c78a39 into main Apr 11, 2026
17 checks passed
@dermatz dermatz deleted the fix/remove-inp-metric branch April 11, 2026 14:43
@github-actions github-actions bot mentioned this pull request Apr 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants