diff --git a/packages/astro-embed-youtube/YouTube.astro b/packages/astro-embed-youtube/YouTube.astro index 6f1375bc..06408407 100644 --- a/packages/astro-embed-youtube/YouTube.astro +++ b/packages/astro-embed-youtube/YouTube.astro @@ -8,6 +8,7 @@ export interface Props extends astroHTML.JSX.HTMLAttributes { posterQuality?: 'max' | 'high' | 'default' | 'low'; params?: string; playlabel?: string; + fetchpriority?: 'high' | 'low' | 'auto'; } const { @@ -16,6 +17,7 @@ const { posterQuality = 'default', title, style, + fetchpriority = 'auto', ...attrs } = Astro.props as Props; @@ -43,10 +45,18 @@ if (style) styles.push(style); if (posterURL) styles.push(`background-image: url('${posterURL}')`); --- + +