aboutsummaryrefslogtreecommitdiffhomepage
path: root/modules
diff options
context:
space:
mode:
authorydylla <[email protected]>2023-07-22 17:50:36 +0200
committerGitHub <[email protected]>2023-07-22 15:50:36 +0000
commite041962b66c45db8baab95b71a65f4c164736684 (patch)
treebe0ced61b69920a1d46dbd5232d9a46981fef225 /modules
parentf45a6de20dd19e82e58c85b37e03957b2203b544 (diff)
downloadcaddy-e041962b66c45db8baab95b71a65f4c164736684.tar.gz
caddy-e041962b66c45db8baab95b71a65f4c164736684.zip
fileserver: add lazy image loading (#5646)
Diffstat (limited to 'modules')
-rw-r--r--modules/caddyhttp/fileserver/browse.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/caddyhttp/fileserver/browse.html b/modules/caddyhttp/fileserver/browse.html
index fa5ee08a5..db7263c07 100644
--- a/modules/caddyhttp/fileserver/browse.html
+++ b/modules/caddyhttp/fileserver/browse.html
@@ -13,7 +13,7 @@
</svg>
{{- else if .HasExt ".jpg" ".jpeg" ".png" ".gif" ".webp" ".tiff" ".bmp" ".heif" ".heic"}}
{{- if eq .Tpl.Layout "grid"}}
- <img src="{{html .Name}}">
+ <img loading="lazy" src="{{html .Name}}">
{{- else}}
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-photo" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>