1
Fork 0

Remove lazy loading from post header image

Because it's above the fold, it creates a huge layout shift when it loads
This commit is contained in:
Jake Howard 2021-12-27 11:06:06 +00:00
parent 27fc575c12
commit b56dca5fe7
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -10,7 +10,7 @@
{{ .Scratch.Set "image" $unsplash_data.urls.regular }}
{{ end }}
<img class="mb-3 header-image" src='{{ .Scratch.Get "image" }}' alt="" decoding="async" loading="lazy" referrerpolicy="no-referrer" />
<img class="mb-3 header-image" src='{{ .Scratch.Get "image" }}' alt="" decoding="async" referrerpolicy="no-referrer" />
{{ end }}
{{ partial "breadcrumbs/index.html" . }}