feat: load first image of gallery immediatly

This commit is contained in:
Stefan Imhoff
2023-07-01 13:48:19 +02:00
parent 645157a4b3
commit 8e7151d68d

View File

@@ -57,6 +57,7 @@ const imageLength = entry.data.images.length;
aspect={entry.data.aspect}
breakpoints={[500, 1000, 1500]}
format={['avif']}
loading={index === 0 ? 'eager' : 'lazy'}
src={src}
/>
</div>