1
1
mirror of https://github.com/go-gitea/gitea synced 2025-12-07 13:28:25 +00:00

Improve img lazy loading (#34804)

Related #32051 and #13526
This commit is contained in:
wxiaoguang
2025-06-21 14:53:22 +08:00
committed by GitHub
parent 0990eb44ce
commit 81adb01713
11 changed files with 30 additions and 17 deletions

View File

@@ -4,7 +4,7 @@
{{if $attachments}}
<div class="card-attachment-images">
{{range $attachments}}
<img src="{{.DownloadURL}}" alt="{{.Name}}" />
<img loading="lazy" src="{{.DownloadURL}}" alt="{{.Name}}" />
{{end}}
</div>
{{end}}