From 2d7884aafb243b8fff54f93c650707afc758386b Mon Sep 17 00:00:00 2001 From: Simon H <5968653+dummdidumm@users.noreply.github.com> Date: Mon, 5 Feb 2024 17:46:58 +0100 Subject: [PATCH] fix: add `fetchpriority` to `script` and `link` tags (#10403) Works on more elements besides img --- 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 60ab0823cebb..c82d5a692880 100644 --- a/packages/svelte/elements.d.ts +++ b/packages/svelte/elements.d.ts @@ -882,6 +882,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 { @@ -1016,6 +1017,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;