Skip to content

Commit 5839722

Browse files
committed
Defer lazy script + Keep lazy CSS at the end
1 parent a9f4e84 commit 5839722

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/index.ejs

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<link rel="preconnect" href="fonts.gstatic.com" />
1515

1616
<!-- Lazy JS -->
17-
<script src="./bundle/index.js" async defer></script>
17+
<script src="./bundle/index.js" defer></script>
1818

1919
<!-- Google tag (gtag.js) -->
2020
<script
@@ -83,9 +83,6 @@
8383
/>
8484
</head>
8585
<body>
86-
<!-- Lazy CSS -->
87-
<link rel="stylesheet" href="./bundle/index.css" />
88-
8986
<div class="fancy-orb-background">
9087
<div class="orb orb-red"></div>
9188
<div class="orb orb-green"></div>
@@ -178,5 +175,8 @@
178175
</p>
179176
</footer>
180177
</main>
178+
179+
<!-- Lazy CSS -->
180+
<link rel="stylesheet" href="./bundle/index.css" />
181181
</body>
182182
</html>

0 commit comments

Comments
 (0)