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
entriesto only include entries with matchinginteractionIdthat were processed within the same animation frame. Previously it included all entries with matchinginteractionIdvalues, which could include entries not impacting INP (#442).
- Renamed
eventTargettointeractionTarget(#442). - Renamed
eventTimetointeractionTime(#442). - Renamed
eventTypetointeractionType. Also this property will now always be either "pointer" or "keyboard" (#442). - Removed
eventEntryin favor of the newprocessedEventEntriesarray (see below), which includes allevententries processed within the same animation frame as the INP candidate interaction (#442).
- Renamed
resourceLoadTimetoresourceLoadDuration(#450).
- Renamed
waitingTimetowaitingDuration, and also split out the portion of this duration spent checking the HTTP cache, seecacheDurationin the new features section below (#453, #458). - Renamed
dnsTimetodnsDuration(#453). - Renamed
connectionTimetoconnectionDuration(#453). - Renamed
requestTimetorequestDuration(#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 ofevententries that were processed within the same animation frame as the INP candidate interaction (#442). - Added
longAnimationFrameEntries, which includes anylong-animation-frameentries 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. Developers should useonINP()instead (#435). - The
ReportCallbacktype 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.