Skip to content

Commit b3e42b7

Browse files
committed
improve css loading speed
1 parent bce0ea1 commit b3e42b7

File tree

6 files changed

+131
-223
lines changed

6 files changed

+131
-223
lines changed

app/root.res

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
%%raw(`
22
import "../styles/_hljs.css";
3-
import "../styles/main.css";
43
import "../styles/utils.css";
54
65
import hljs from 'highlight.js/lib/core';
@@ -32,6 +31,8 @@ let default = () => {
3231
<html>
3332
<head>
3433
<link rel="icon" href="data:image/x-icon;base64,AA" />
34+
<link rel="preload" href="../styles/main.css" type_="text/css" />
35+
<link rel="stylesheet" href="../styles/main.css" />
3536
</head>
3637
<body>
3738
<Navigation isOverlayOpen setOverlayOpen />

0 commit comments

Comments
 (0)