Skip to content

Commit d2d344e

Browse files
committed
refactor : 글 작성 페이지 폰트 옵션 preLoad 사용해서 FOUT 현상 해결
1 parent 1166430 commit d2d344e

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

index.html

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,34 @@
1111
crossorigin
1212
href="https://cdn.jsdelivr.net/gh/orioncactus/[email protected]/dist/web/variable/pretendardvariable.min.css"
1313
/>
14+
<link
15+
rel="preload"
16+
href="https://fastly.jsdelivr.net/gh/projectnoonnu/[email protected]/KyoboHandwriting2020A.woff"
17+
as="font"
18+
type="font/woff"
19+
crossorigin="anonymous"
20+
/>
21+
<link
22+
rel="preload"
23+
href="https://fastly.jsdelivr.net/gh/projectnoonnu/[email protected]/iceHimchan-Rg.woff2"
24+
as="font"
25+
type="font/woff2"
26+
crossorigin="anonymous"
27+
/>
28+
<link
29+
rel="preload"
30+
href="https://fastly.jsdelivr.net/gh/projectnoonnu/[email protected]/Batang_Regular.woff"
31+
as="font"
32+
type="font/woff"
33+
crossorigin="anonymous"
34+
/>
35+
<link
36+
rel="preload"
37+
href="https://fastly.jsdelivr.net/gh/projectnoonnu/[email protected]/HancomMalangMalang-Bold.woff2"
38+
as="font"
39+
type="font/woff2"
40+
crossorigin="anonymous"
41+
/>
1442
</head>
1543
<body>
1644
<div id="root"></div>

src/assets/images/basic-theme.png

-545 Bytes
Binary file not shown.

src/styles/fonts.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
format('woff');
55
font-weight: normal;
66
font-style: normal;
7+
font-display: swap;
78
}
89
@font-face {
910
font-family: 'iceHimchan-Rg';

0 commit comments

Comments
 (0)