@marcel91200 / caddy Mirror · read-only / commits / e041962b
Fork 0

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

Mirrored from https://github.com/Slazee/caddy.git

Synced Nov 13, 00:30 UTC

fileserver: add lazy image loading (#5646)

ydylla committed Jul 22, 2023 at 17:50 UTC e041962b66c45db8baab95b71a65f4c164736684
1 file changed +1 -1
modules/caddyhttp/fileserver/browse.html
+1 -1
@@ -13,7 +13,7 @@
13 </svg>
14 {{- else if .HasExt ".jpg" ".jpeg" ".png" ".gif" ".webp" ".tiff" ".bmp" ".heif" ".heic"}}
15 {{- if eq .Tpl.Layout "grid"}}
16 - <img src="{{html .Name}}">
16 + <img loading="lazy" src="{{html .Name}}">
17 {{- else}}
18 <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">
19 <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>