Skip to content

Commit

Permalink
feat: add fetchpriority property (#10)
Browse files Browse the repository at this point in the history
* fetchpriority added to image.tsx

fetchpriority is one the essential values as img attribute in order to improve page LCP.
  • Loading branch information
arensade authored Apr 23, 2024
1 parent 6c3ea3f commit 172a390
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/qwik-image/src/lib/image.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import {
QRL,
QwikIntrinsicElements,
Signal,
component$,
createContextId,
useComputed$,
Expand Down Expand Up @@ -46,6 +45,7 @@ export interface ImageProps extends ImageAttributes {
| 'scale-down'
| 'inherit'
| 'initial';
fetchpriority?: 'low' | 'high' | 'auto';
}

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

0 comments on commit 172a390

Please sign in to comment.