trait DefersProps

Properties

protected bool $deferred

Indicates if the property should be deferred.

protected string|null $deferGroup

The defer group.

Methods

defer(string|null $group = null)

Mark this property as deferred. Deferred properties are excluded from the initial page load and only evaluated when requested by the frontend, improving initial page performance.

bool
shouldDefer()

Determine if this property should be deferred.

string
group()

Get the defer group for this property.

Details

at line 24
DefersProps defer(string|null $group = null)

Mark this property as deferred. Deferred properties are excluded from the initial page load and only evaluated when requested by the frontend, improving initial page performance.

Parameters

string|null $group

Return Value

DefersProps

at line 35
bool shouldDefer()

Determine if this property should be deferred.

Return Value

bool

at line 43
string group()

Get the defer group for this property.

Return Value

string