Move script tags
This commit is contained in:
parent
2d68f04ab2
commit
e05118a29b
@ -24,17 +24,13 @@ const indexTemplate = `
|
||||
<script>{{.InlineScript}}</script>
|
||||
{{end}}
|
||||
|
||||
{{range .Scripts}}
|
||||
<script src="{{.}}" defer></script>
|
||||
{{end}}
|
||||
|
||||
<link rel="preload" href="/font/RobotoMono-Regular.woff2" as="font" type="font/woff2" crossorigin>
|
||||
<link rel="preload" href="/font/Montserrat-Regular.woff2" as="font" type="font/woff2" crossorigin>
|
||||
<link rel="preload" href="/font/Montserrat-Bold.woff2" as="font" type="font/woff2" crossorigin>
|
||||
<link rel="preload" href="/font/RobotoMono-Bold.woff2" as="font" type="font/woff2" crossorigin>
|
||||
|
||||
{{if .Stylesheet}}
|
||||
<link href="{{.Stylesheet}}" rel="stylesheet">
|
||||
<link rel="stylesheet" href="{{.Stylesheet}}">
|
||||
{{end}}
|
||||
|
||||
<link rel="manifest" href="/manifest.json">
|
||||
@ -44,6 +40,10 @@ const indexTemplate = `
|
||||
<body>
|
||||
<noscript>This page needs JavaScript enabled to function.</noscript>
|
||||
<div id="root"></div>
|
||||
|
||||
{{range .Scripts}}
|
||||
<script src="{{.}}"></script>
|
||||
{{end}}
|
||||
</body>
|
||||
|
||||
</html>`
|
||||
|
Loading…
Reference in New Issue
Block a user