File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import { ToastContainer } from 'react-toastify/unstyled';
1010import type { Route } from './+types/root' ;
1111
1212import './app.css' ;
13+ import { preload } from 'react-dom' ;
1314import { Slide } from 'react-toastify' ;
1415import StompProvider from './provider/StompProvider' ;
1516import UserIdProvider from './provider/UserInfoProvider' ;
@@ -53,6 +54,19 @@ export function meta() {
5354}
5455
5556export function Layout ( { children } : Readonly < { children : React . ReactNode } > ) {
57+ preload ( '/fonts/Pretendard-Medium.woff2' , {
58+ as : 'font' ,
59+ crossOrigin : 'anonymous' ,
60+ } ) ;
61+ preload ( '/fonts/Pretendard-Regular.woff2' , {
62+ as : 'font' ,
63+ crossOrigin : 'anonymous' ,
64+ } ) ;
65+ preload ( '/fonts/Pretendard-SemiBold.woff2' , {
66+ as : 'font' ,
67+ crossOrigin : 'anonymous' ,
68+ } ) ;
69+
5670 return (
5771 < html lang = "en" >
5872 < head >
You can’t perform that action at this time.
0 commit comments