diff --git a/src/app/layout.tsx b/src/app/layout.tsx index f4447a0..297f786 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,3 +1,4 @@ +import { PreloadResources } from "@/components/preload-resources"; import type { Metadata } from "next"; import localFont from "next/font/local"; import BackgroundImage from "../components/background-image"; @@ -62,6 +63,7 @@ export default function RootLayout({ + diff --git a/src/components/preload-resources.tsx b/src/components/preload-resources.tsx new file mode 100644 index 0000000..7fb5e5b --- /dev/null +++ b/src/components/preload-resources.tsx @@ -0,0 +1,9 @@ +"use client"; + +import ReactDOM from "react-dom"; + +export function PreloadResources() { + ReactDOM.prefetchDNS("https://proxy.fascinated.cc"); + ReactDOM.prefetchDNS("https://scoresber.com"); + return undefined; +}