feat: set high priority for site first screen images

This commit is contained in:
DIYgod
2023-06-21 17:48:34 +01:00
parent 76b243db86
commit 2a7bdce3dc
4 changed files with 36 additions and 17 deletions
+3
View File
@@ -11,6 +11,7 @@ export const Avatar = ({
className,
rounded,
imageRef,
priority,
...props
}: {
images: (string | null | undefined)[]
@@ -19,6 +20,7 @@ export const Avatar = ({
rounded?: boolean
imageRef?: React.MutableRefObject<HTMLImageElement>
className?: string
priority?: boolean
} & React.HTMLAttributes<HTMLSpanElement>) => {
size = size || 60
@@ -78,6 +80,7 @@ export const Avatar = ({
height={size}
alt={name || ""}
imageRef={imageRef}
priority={priority}
/>
</span>
)