1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-11-28 14:43:49 -05:00

priority flag on above-the-fold images

This commit is contained in:
2022-01-09 23:35:16 -05:00
parent f56006d627
commit 58321a3844
18 changed files with 20 additions and 3 deletions

View File

@@ -15,8 +15,9 @@ const CustomImg = (props: ImageProps) => {
width={props.width}
height={props.height}
alt={props.alt}
quality={85}
loading="lazy"
quality={65}
loading={props.priority ? "eager" : "lazy"}
priority={!!props.priority}
/>
</div>
);