Docs · API reference · Motus.Abstractions
LayoutShiftEntry Class#
An individual layout shift entry observed during page execution.
public sealed record LayoutShiftEntry : System.IEquatable<Motus.Abstractions.LayoutShiftEntry>
Inheritance System.Object → LayoutShiftEntry
Implements System.IEquatable<LayoutShiftEntry>
Constructors#
LayoutShiftEntry(double, IReadOnlyList<string>) Constructor#
An individual layout shift entry observed during page execution.
public LayoutShiftEntry(double Score, System.Collections.Generic.IReadOnlyList<string> SourceElements);
Parameters#
Score System.Double
The layout shift score for this entry.
SourceElements System.Collections.Generic.IReadOnlyList<System.String>
Tag names of the DOM elements that shifted.
Properties#
Score Property#
The layout shift score for this entry.
public double Score { get; init; }
Property Value#
SourceElements Property#
Tag names of the DOM elements that shifted.
public System.Collections.Generic.IReadOnlyList<string> SourceElements { get; init; }