PerformanceSoftNavigation Class

A soft navigation (https://wicg.github.io/soft-navigations/#sec-soft-navs): a user interaction that changed the URL of the document (history.pushState(), a fragment navigation, a traversal, a navigation intercepted by the Navigation API) and whose modifications of the document were painted. It is reported to the soft-navigation performance observers of its window, and the entries queued from then on have a new PerformanceEntry.NavigationId.

public sealed class PerformanceSoftNavigation : PerformanceEntry
Inheritance
PerformanceEntry PerformanceSoftNavigation

Properties

NameDescription
InteractionIdGets the identifier of the interaction (PerformanceEventTiming.InteractionId).
NavigationTypeGets the type of the first URL change of the interaction.
PaintTimeGets the time of the end of the rendering update of the first contentful paint of the interaction.
PresentationTimeGets the time the frame was presented to the user: null, the presentation time is not supported.

InteractionId

SoftNavigations.cs

Gets the identifier of the interaction (PerformanceEventTiming.InteractionId).

public ulong InteractionId { get; }

Gets the time of the end of the rendering update of the first contentful paint of the interaction.

public double PaintTime { get; }

PresentationTime

SoftNavigations.cs

Gets the time the frame was presented to the user: null, the presentation time is not supported.

public double? PresentationTime { get; }

Methods

NameDescription
GetLargestInteractionContentfulPaint()Returns the largest contentful paint of the interaction so far (it changes while the interaction paints larger content).

GetLargestInteractionContentfulPaint()

SoftNavigations.cs

Returns the largest contentful paint of the interaction so far (it changes while the interaction paints larger content).

public InteractionContentfulPaint? GetLargestInteractionContentfulPaint()