1
0
Fork 0

perf: lazy-load photo thumbnails for mobile bandwidth

This commit is contained in:
Jonny 2026-08-18 14:01:53 +02:00
parent 9406ab31d7
commit c55d10f414
1 changed files with 1 additions and 1 deletions

View File

@ -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>