Skip to content
This repository was archived by the owner on Nov 2, 2021. It is now read-only.

Commit 5a9e022

Browse files
Juliette PretotJ
authored andcommitted
defer greeting scripts
1 parent 6e62733 commit 5a9e022

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/html.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ const HTML: React.FunctionComponent<{
126126
__html: WEBFONTS
127127
}}
128128
/>
129-
<script
129+
<script defer
130130
dangerouslySetInnerHTML={{
131131
__html: GREETING
132132
}}
@@ -138,8 +138,8 @@ const HTML: React.FunctionComponent<{
138138
<div id="___gatsby" dangerouslySetInnerHTML={{ __html: body }} />
139139
{postBodyComponents}
140140
</body>
141-
<script dangerouslySetInnerHTML={{ __html: CONSOLE_GREETING }} />
142-
</html>
141+
<script defer dangerouslySetInnerHTML={{ __html: CONSOLE_GREETING }} />
142+
</html >
143143
)
144144

145145
export default HTML

0 commit comments

Comments
 (0)