This commit is contained in:
parent
f65407332c
commit
b1a889421c
@ -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>
|
||||
|
9
src/components/preload-resources.tsx
Normal file
9
src/components/preload-resources.tsx
Normal file
@ -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;
|
||||
}
|
Reference in New Issue
Block a user