LAzy load on images

This commit is contained in:
Anna-Sara Sélea 2025-05-11 18:56:27 +02:00
parent b62cebb2eb
commit 9394890c0c
2 changed files with 7 additions and 2 deletions

View file

@ -71,7 +71,8 @@ class Reserve extends BasePage implements HasTable
->disk('local')
->size('100%')
->extraImgAttributes([
'class' => 'rounded-md'
'class' => 'rounded-md',
'loading' => 'lazy'
])
->visibility('private'),
TextColumn::make('desc')

View file

@ -148,7 +148,11 @@ class ItemResource extends Resource
->label('Image')
->translateLabel()
->disk('local')
->visibility('private'),
->visibility('private')
->extraImgAttributes([
'class' => 'rounded-md',
'loading' => 'lazy'
]),
IconColumn::make('can_be_loaned')
->label('Can be loaned')
->translateLabel()