This document lists the full set of changes between version 3 and version 4 that are relevant to anyone wanting to upgrade to the new version. This document groups changes into "breaking changes", "new features", and "deprecations" across both the "standard" and "attribution" builds (see build options for details).
- Removed the "base+polyfill" build, which includes the FID polyfill and the Navigation Timing polyfill supporting legacy Safari browsers (#435).
- Removed all
getXXX()
functions that were deprecated in v3 (#435).
- Changed
entries
to only include entries with matchinginteractionId
that were processed within the same animation frame. Previously it included all entries with matchinginteractionId
values, which could include entries not impacting INP (#442).
- Renamed
eventTarget
tointeractionTarget
(#442). - Renamed
eventTime
tointeractionTime
(#442). - Renamed
eventType
tointeractionType
. Also this property will now always be either "pointer" or "keyboard" (#442). - Removed
eventEntry
in favor of the newprocessedEventEntries
array (see below), which includes allevent
entries processed within the same animation frame as the INP candidate interaction (#442).
- Renamed
resourceLoadTime
toresourceLoadDuration
(#450).
- Renamed
waitingTime
towaitingDuration
, and also split out the portion of this duration spent checking the HTTP cache, seecacheDuration
in the new features section below (#453, #458). - Renamed
dnsTime
todnsDuration
(#453). - Renamed
connectionTime
toconnectionDuration
(#453). - Renamed
requestTime
torequestDuration
(#453).
No new features were introduced into the "standard" build, outside of the breaking changes mentioned above.
- Added
nextPaintTime
, which marks the timestamp of the next paint after the interaction (#442). - Added
inputDelay
, which measures the time from when the user interacted with the page until when the browser was first able to start processing event listeners for that interaction. (#442). - Added
processingDuration
, which measures the time from when the first event listener started running in response to the user interaction until when all event listener processing has finished (#442). - Added
presentationDelay
, which measures the time from when the browser finished processing all event listeners for the user interaction until the next frame is presented on the screen and visible to the user. (#442). - Added
processedEventEntries
, an array ofevent
entries that were processed within the same animation frame as the INP candidate interaction (#442). - Added
longAnimationFrameEntries
, which includes anylong-animation-frame
entries that overlap with the INP candidate interaction (#442). - Added
interactionTargetElement
(#479).
- Added
cacheDuration
, which marks the total time spent checking the HTTP cache for a match (#458).
- The
onFID()
function [has been deprecated]https://web.dev/blog/inp-cwv-launch#fid_deprecation_timeline). Developers should useonINP()
instead (#435). - The
ReportCallback
type has been deprecated in favor of explicit callback types for each metric function (#483).
All deprecated APIs will be removed in the next major version.