dns prefetch
All checks were successful
Deploy SSR / deploy (push) Successful in 1m11s

This commit is contained in:
Lee 2024-09-12 19:56:09 +01:00
parent f65407332c
commit b1a889421c
2 changed files with 11 additions and 0 deletions

@ -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({
<DatabaseLoader>
<Toaster />
<BackgroundImage />
<PreloadResources />
<TooltipProvider>
<ThemeProvider attribute="class" defaultTheme="dark" enableSystem disableTransitionOnChange>
<QueryProvider>

@ -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;
}