diff --git a/app/_document.tsx b/app/_document.tsx index a93963c..5a63c82 100644 --- a/app/_document.tsx +++ b/app/_document.tsx @@ -3,7 +3,9 @@ import { Html, Head, Main, NextScript } from "next/document"; export default function Document() { return ( - + + +
diff --git a/app/layout.tsx b/app/layout.tsx index ed88c38..6815872 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -8,6 +8,7 @@ import { Metadata, Viewport } from "next" import KeepOnlineWrapper from "@/components/layout/KeepOnlineWrapper" import { ChristmasDecorations } from "@/components/christmas-decorations" import { isDecember } from "@/lib/utils/christmas" +import { AudioPreloader } from "@/components/audio-preloader" const inter = Inter({ subsets: ["latin"] }) @@ -77,6 +78,7 @@ export default function RootLayout({ + {isDec && } { + // Preload the audio file + const audio = new Audio('/hohoho.mp3') + audio.preload = 'auto' + + // Try to load it immediately + audio.load().catch(err => { + console.log('Audio preload failed (non-critical):', err) + }) + + return () => { + // Cleanup + audio.src = '' + } + }, []) + + return null +} + diff --git a/yt-dlp.exe b/yt-dlp.exe new file mode 100644 index 0000000..ac0e0d8 Binary files /dev/null and b/yt-dlp.exe differ