Skip to content

Commit 3a06ac7

Browse files
committed
feat: add fetchpriority to img attrs
1 parent d08e05b commit 3a06ac7

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/svelte/elements.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -978,6 +978,7 @@ export interface HTMLImgAttributes extends HTMLAttributes<HTMLImageElement> {
978978
alt?: string | undefined | null;
979979
crossorigin?: 'anonymous' | 'use-credentials' | '' | undefined | null;
980980
decoding?: 'async' | 'auto' | 'sync' | undefined | null;
981+
fetchpriority?: 'auto' | 'high' | 'low' | undefined | null;
981982
height?: number | string | undefined | null;
982983
ismap?: boolean | undefined | null;
983984
loading?: 'eager' | 'lazy' | undefined | null;

packages/svelte/src/constants.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ export const PassiveDelegatedEvents = ['touchstart', 'touchmove', 'touchend'];
4949
*/
5050
export const AttributeAliases = {
5151
// no `class: 'className'` because we handle that separately
52+
fetchpriority: 'fetchPriority',
5253
formnovalidate: 'formNoValidate',
5354
ismap: 'isMap',
5455
nomodule: 'noModule',

0 commit comments

Comments
 (0)