LayoutShift

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

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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Score increment produced by this event.