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

Commit

Permalink
defer greeting scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
jul-sh authored and J committed Dec 22, 2020
1 parent 6e62733 commit 5a9e022
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/html.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ const HTML: React.FunctionComponent<{
__html: WEBFONTS
}}
/>
<script
<script defer
dangerouslySetInnerHTML={{
__html: GREETING
}}
Expand All @@ -138,8 +138,8 @@ const HTML: React.FunctionComponent<{
<div id="___gatsby" dangerouslySetInnerHTML={{ __html: body }} />
{postBodyComponents}
</body>
<script dangerouslySetInnerHTML={{ __html: CONSOLE_GREETING }} />
</html>
<script defer dangerouslySetInnerHTML={{ __html: CONSOLE_GREETING }} />
</html >
)

export default HTML

0 comments on commit 5a9e022

Please sign in to comment.