Skip to content

Commit ef41ba9

Browse files
johanrinclaude
andcommitted
Optimize avatar loading with fetchpriority and decoding
Add fetchpriority="high" for faster LCP since avatar is above the fold. Add decoding="async" for non-blocking image decode. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent bb733c5 commit ef41ba9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

layouts/partials/bio.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
srcset="{{ $image2x.RelPermalink }} 2x, {{ $image3x.RelPermalink }} 3x"
1818
alt="{{ $avatar_img_alt }}"
1919
width="{{ $image1x.Width }}"
20-
height="{{ $image1x.Height }}" />
20+
height="{{ $image1x.Height }}"
21+
fetchpriority="high"
22+
decoding="async" />
2123
{{ end }}
2224
{{ end }}
2325
<h2 class="author-name">{{ .Site.Params.author.intro }}</h2>

0 commit comments

Comments
 (0)