refactor: replace YouTubeVideo with YouTube Lite

YouTube loads PER video embedded in a page 900 kB which is insane.
This commit is contained in:
Stefan Imhoff
2023-06-10 19:17:43 +02:00
parent 9b3e5265bd
commit fd60e171ce
11 changed files with 53 additions and 50 deletions

View File

@@ -1,3 +1,5 @@
import { YouTube } from '@astro-community/astro-embed-youtube';
import DownloadLink from './components/DownloadLink.astro';
import EmailLink from './components/EmailLink.astro';
import Image from './components/Image.astro';
@@ -34,7 +36,6 @@ import {
Title,
UnorderedList,
Verse,
YouTubeVideo,
} from './components';
export const mapping = {
@@ -76,5 +77,5 @@ export const mapping = {
ThemeBox,
ul: UnorderedList,
Verse,
YouTubeVideo,
YouTube,
};