We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f937d7 commit 0f6df6bCopy full SHA for 0f6df6b
src/components/Image.tsx
@@ -5,5 +5,12 @@ export default function Image({
5
priority,
6
...props
7
}: ImgHTMLAttributes<HTMLImageElement> & { priority?: boolean }) {
8
- return <img alt={alt} {...props} loading={priority ? "eager" : "lazy"} />;
+ return (
9
+ <img
10
+ alt={alt}
11
+ {...props}
12
+ loading={priority ? "eager" : "lazy"}
13
+ fetchPriority={priority ? "high" : "auto"}
14
+ />
15
+ );
16
}
0 commit comments