From 74f51401aa6850c7d8cacec8ef2ebeefcafbb00d Mon Sep 17 00:00:00 2001 From: Simon Holthausen Date: Mon, 5 Feb 2024 17:42:06 +0100 Subject: [PATCH] fix: add `fetchpriority` to `script` and `link` tags Works on more elements besides img fixes #10394 --- packages/svelte/elements.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/svelte/elements.d.ts b/packages/svelte/elements.d.ts index f453cee08e..7e3b5a7ffa 100644 --- a/packages/svelte/elements.d.ts +++ b/packages/svelte/elements.d.ts @@ -1099,6 +1099,7 @@ export interface HTMLLinkAttributes extends HTMLAttributes { sizes?: string | undefined | null; type?: string | undefined | null; charset?: string | undefined | null; + fetchpriority?: 'auto' | 'high' | 'low' | undefined | null; } export interface HTMLMapAttributes extends HTMLAttributes { @@ -1233,6 +1234,7 @@ export interface HTMLScriptAttributes extends HTMLAttributes charset?: string | undefined | null; crossorigin?: string | undefined | null; defer?: boolean | undefined | null; + fetchpriority?: 'auto' | 'high' | 'low' | undefined | null; integrity?: string | undefined | null; nomodule?: boolean | undefined | null; nonce?: string | undefined | null;