Add lazy loading to carousel screenshot images
Adds loading="lazy" attribute to defer off-screen carousel images, improving initial page load performance especially on mobile. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
6f8353236a
commit
1258d9ff2e
1 changed files with 1 additions and 1 deletions
|
|
@ -4,7 +4,7 @@
|
|||
{{ range sort .Site.Params.carousel "weight" }}
|
||||
<figure class="my-5 mr-5 text-center" style="min-width: 65vw">
|
||||
<a href="{{ .image }}">
|
||||
<img class="rounded img-thumbnail" src="{{ .image }}" alt="{{ .title }}" style="max-height: 80vh;">
|
||||
<img class="rounded img-thumbnail" src="{{ .image }}" alt="{{ .title }}" loading="lazy" style="max-height: 80vh;">
|
||||
</a>
|
||||
<figcaption class="mt-2 text-center">{{ .description | markdownify }}</figcaption>
|
||||
</figure>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue