Change img.html loading param default to eager

master
Will Faught 2 years ago
parent 3761f480d5
commit 56203ee675

@ -468,7 +468,7 @@ Parameters:
<dt><code>linked</code></dt> <dt><code>linked</code></dt>
<dd>Optional. String. Hugo image processing <a href="https://gohugo.io/content-management/image-processing/#image-processing-methods">methods</a> and <a href="https://gohugo.io/content-management/image-processing/#image-processing-options">options</a>, mixed together, for the linked image. If no method is specified, resize is used. If no image dimensions are specified, the originals are used. If it is <code>unprocessed</code>, it is unprocessed. If it is <code>default</code>, the <a href="https://gohugo.io/content-management/image-processing/#processing-options">default options</a> are used.</dd> <dd>Optional. String. Hugo image processing <a href="https://gohugo.io/content-management/image-processing/#image-processing-methods">methods</a> and <a href="https://gohugo.io/content-management/image-processing/#image-processing-options">options</a>, mixed together, for the linked image. If no method is specified, resize is used. If no image dimensions are specified, the originals are used. If it is <code>unprocessed</code>, it is unprocessed. If it is <code>default</code>, the <a href="https://gohugo.io/content-management/image-processing/#processing-options">default options</a> are used.</dd>
<dt><code>loading</code></dt> <dt><code>loading</code></dt>
<dd>Optional. String. Must be <code>eager</code> or <code>lazy</code> (default).</dd> <dd>Optional. String. Must be <code>eager</code> (default) or <code>lazy</code>.</dd>
<dt><code>maxheight</code></dt> <dt><code>maxheight</code></dt>
<dd>Optional. String. CSS value. Maximum image height.</dd> <dd>Optional. String. CSS value. Maximum image height.</dd>
<dt><code>maxwidth</code></dt> <dt><code>maxwidth</code></dt>
@ -552,7 +552,7 @@ Parameters:
<dt><code>linked</code></dt> <dt><code>linked</code></dt>
<dd>Optional. String. Hugo image processing <a href="https://gohugo.io/content-management/image-processing/#image-processing-methods">methods</a> and <a href="https://gohugo.io/content-management/image-processing/#image-processing-options">options</a>, mixed together, for the linked image. If no method is specified, resize is used. If no image dimensions are specified, the originals are used. If it is <code>unprocessed</code>, it is unprocessed. If it is <code>default</code>, the <a href="https://gohugo.io/content-management/image-processing/#processing-options">default options</a> are used. Must not use with <code>link</code>.</dd> <dd>Optional. String. Hugo image processing <a href="https://gohugo.io/content-management/image-processing/#image-processing-methods">methods</a> and <a href="https://gohugo.io/content-management/image-processing/#image-processing-options">options</a>, mixed together, for the linked image. If no method is specified, resize is used. If no image dimensions are specified, the originals are used. If it is <code>unprocessed</code>, it is unprocessed. If it is <code>default</code>, the <a href="https://gohugo.io/content-management/image-processing/#processing-options">default options</a> are used. Must not use with <code>link</code>.</dd>
<dt><code>loading</code></dt> <dt><code>loading</code></dt>
<dd>Optional. String. Must be <code>eager</code> or <code>lazy</code> (default).</dd> <dd>Optional. String. Must be <code>eager</code> (default) or <code>lazy</code>.</dd>
<dt><code>maxheight</code></dt> <dt><code>maxheight</code></dt>
<dd>Optional. String. CSS value. Image maximum height.</dd> <dd>Optional. String. CSS value. Image maximum height.</dd>
<dt><code>maxwidth</code></dt> <dt><code>maxwidth</code></dt>

@ -5,7 +5,7 @@
{{ $crossorigin := $params.crossorigin | default "anonymous" }} {{ $crossorigin := $params.crossorigin | default "anonymous" }}
{{ $fetchpriority := $params.fetchpriority }} {{ $fetchpriority := $params.fetchpriority }}
{{ $height := $params.height }} {{ $height := $params.height }}
{{ $loading := $params.loading | default "lazy" }} {{ $loading := $params.loading | default "eager" }}
{{ $referrerpolicy := $params.referrerpolicy | default "no-referrer" }} {{ $referrerpolicy := $params.referrerpolicy | default "no-referrer" }}
{{ $sizes := $params.sizes }} {{ $sizes := $params.sizes }}
{{ $src := $params.src }} {{ $src := $params.src }}

Loading…
Cancel
Save