LayoutShift

@Serializable
data class LayoutShift(val value: Double, val hadRecentInput: Boolean, val lastInputTime: TimeSinceEpoch, val sources: List<LayoutShiftAttribution>)

See https://wicg.github.io/layout-instability/#sec-layout-shift and layout_shift.idl

Official doc

Constructors

Link copied to clipboard
constructor(value: Double, hadRecentInput: Boolean, lastInputTime: TimeSinceEpoch, sources: List<LayoutShiftAttribution>)

Properties

Link copied to clipboard

(undocumented in the protocol definition)

Link copied to clipboard

(undocumented in the protocol definition)

Link copied to clipboard

(undocumented in the protocol definition)

Link copied to clipboard

Score increment produced by this event.