From ace2fe18deb282bb4e8af79e669ee8d8683a4e0f Mon Sep 17 00:00:00 2001 From: Lukas Heumos Date: Fri, 11 Sep 2026 12:01:04 +0200 Subject: [PATCH] Load the nav script with defer instead of async bootstrap.bundle.js was async while the nav dropdowns and the mobile collapse depend on it, so the nav could be dead on first paint. Ordered ahead of main.js. Inter is preloaded: it was only discoverable after main.scss parsed. Remote avatars get referrerpolicy=no-referrer and decoding=async. --- layouts/partials/head.html | 3 ++- layouts/partials/people/avatar.html | 2 ++ layouts/partials/stats-contributor.html | 10 +++++++++- layouts/people/list.html | 10 +++++++++- 4 files changed, 22 insertions(+), 3 deletions(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 4d498880..9dc54245 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -8,6 +8,7 @@ {{ $styles := resources.Get "main.scss" | toCSS | minify }} + @@ -40,6 +41,6 @@ {{ template "_internal/twitter_cards.html" . }} {{ template "_internal/opengraph.html" . }} + - diff --git a/layouts/partials/people/avatar.html b/layouts/partials/people/avatar.html index c405213a..e0ba6074 100644 --- a/layouts/partials/people/avatar.html +++ b/layouts/partials/people/avatar.html @@ -11,6 +11,8 @@ src="https://github.com/{{ $login }}.png?size={{ mul .size 2 }}" alt="" loading="lazy" + referrerpolicy="no-referrer" + decoding="async" width="{{ .size }}" height="{{ .size }}" /> diff --git a/layouts/partials/stats-contributor.html b/layouts/partials/stats-contributor.html index 6722a0db..f21a54d1 100644 --- a/layouts/partials/stats-contributor.html +++ b/layouts/partials/stats-contributor.html @@ -2,7 +2,15 @@ {{ $most := .most }}
  • - + {{ $person.name | default $person.login }} - + {{ end }}