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