Skip to content

Commit 172a390

Browse files
authored
feat: add fetchpriority property (#10)
* fetchpriority added to image.tsx fetchpriority is one the essential values as img attribute in order to improve page LCP.
1 parent 6c3ea3f commit 172a390

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: packages/qwik-image/src/lib/image.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import {
22
QRL,
33
QwikIntrinsicElements,
4-
Signal,
54
component$,
65
createContextId,
76
useComputed$,
@@ -46,6 +45,7 @@ export interface ImageProps extends ImageAttributes {
4645
| 'scale-down'
4746
| 'inherit'
4847
| 'initial';
48+
fetchpriority?: 'low' | 'high' | 'auto';
4949
}
5050

5151
export const ImageContext = createContextId<ImageState>('ImageContext');

0 commit comments

Comments
 (0)