Skip to content

Commit 87dcd3b

Browse files
authored
Merge pull request #1337 from codeflorist/feature/preload-fetchpriority
feat: add `fetchpriority=high` to image preload elements
2 parents 57b0c44 + 3dcbe8e commit 87dcd3b

File tree

1 file changed

+2
-1
lines changed
  • src/runtime/components/BoosterImage/classes

1 file changed

+2
-1
lines changed

src/runtime/components/BoosterImage/classes/Source.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ export default class Source implements ISource {
9797
imagesrcset: srcset,
9898
imagesizes: sizes,
9999
media: this.media,
100-
crossorigin: crossorigin as HTMLCrossOriginAttribute
100+
crossorigin: crossorigin as HTMLCrossOriginAttribute,
101+
fetchpriority: 'high'
101102
};
102103
return preload;
103104
}

0 commit comments

Comments
 (0)