forked from fahrPool/fahrPool
perf: lazy-load photo thumbnails for mobile bandwidth
This commit is contained in:
parent
9406ab31d7
commit
c55d10f414
|
|
@ -28,7 +28,7 @@ export function FotoGalerie({ fotos }: { fotos: AuftragFoto[] }) {
|
|||
onClick={() => setOffenerIndex(index)}
|
||||
className="aspect-square overflow-hidden rounded-md border border-aluminium-grey focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-performance-blue"
|
||||
>
|
||||
<img src={foto.url} alt={foto.label} className="h-full w-full object-cover" />
|
||||
<img src={foto.url} alt={foto.label} className="h-full w-full object-cover" loading="lazy" decoding="async" />
|
||||
</button>
|
||||
))}
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue