📈 Use lazy loading
Example:
Add the placeholder
method in the component class:
public function placeholder(): string
{
return <<<'HTML'
<div>
<!-- Loading spinner... -->
<svg>...</svg>
</div>
HTML;
}
Add the component with the lazy
attribute:
<livewire:component-name lazy />