Skip to content

Commit f1955fe

Browse files
committed
Move main js to head with defer
1 parent 132ce7a commit f1955fe

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/Elastic.Documentation.Site/Layout/_Footer.cshtml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
@inherits RazorSlice<Elastic.Documentation.Site.GlobalLayoutViewModel>
22

3-
43
<footer class="py-12 px-6 w-full mx-auto bg-ink-dark">
54
<div class="max-w-(--max-layout-width) w-full mx-auto">
65
<div class="text-grey-20 text-[12px]">
@@ -34,5 +33,3 @@
3433
</div>
3534
</div>
3635
</footer>
37-
38-
<script src="@Model.Static("main.js")"></script>

src/Elastic.Documentation.Site/Layout/_Head.cshtml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<link rel="preload" href="@fontFile" as="font" type="font/woff2" crossorigin>
99
}
1010
<link rel="stylesheet preload" as="style" type="text/css" href="@Model.Static("styles.css")" crossorigin/>
11+
<script src="@Model.Static("main.js")" defer></script>
1112
@if (Model.CanonicalBaseUrl is not null)
1213
{
1314
<link rel="canonical" href="@Model.CanonicalUrl" />

0 commit comments

Comments
 (0)