feat: optimize performance and fix CLS issues
This commit is contained in:
parent
5f95673d2f
commit
719aaeaa4d
7 changed files with 88 additions and 17 deletions
|
|
@ -82,10 +82,12 @@ const heroImageSrc = entry.data.heroImage?.src || mePhoto.src;
|
|||
src={entry.data.heroImage}
|
||||
alt={entry.data.title}
|
||||
class="w-full h-full object-cover"
|
||||
width={1200}
|
||||
height={630}
|
||||
quality={70}
|
||||
width={824}
|
||||
height={618}
|
||||
quality={80}
|
||||
format="webp"
|
||||
loading="eager"
|
||||
fetchpriority="high"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue