perf: move scripts to head to enable fetching in parallel
1 file changed, 3 insertions(+), 3 deletions(-)
changed files
M frontend/templates/index.gotmpl → frontend/templates/index.gotmpl
@@ -6,6 +6,9 @@ <meta name="viewport" content="width=device-width, initial-scale=1" /> <title>Searchix</title> <link href="/static/base.css" rel="stylesheet" /> <link href="/static/style.css" rel="stylesheet" /> + {{ block "js" . }} + {{ end }} + {{ .ExtraHeadHTML }} </head> <body> <header>@@ -33,8 +36,5 @@ <footer> Made by <a href="https://alanpearce.eu">Alan Pearce</a>. <a href="https://todo.sr.ht/~alanpearce/searchix">Report issues</a> </footer> - {{ block "js" . }} - {{ end }} - {{ .ExtraBodyHTML }} </body> </html>