loading lazy for status images

This commit is contained in:
localhost_frssoft 2023-11-03 14:19:20 +03:00
parent df746e8482
commit a4a97a6498

View File

@ -135,7 +135,7 @@
</a> </a>
{{else}} {{else}}
<a class="img-link" href="{{.URL}}" target="_blank" title="{{.Description}}"> <a class="img-link" href="{{.URL}}" target="_blank" title="{{.Description}}">
<img class="status-image" src="{{.PreviewURL}}" alt="status-image" height="240" /> <img class="status-image" src="{{.PreviewURL}}" alt="status-image" height="240" loading="lazy" />
{{if (and $.Ctx.MaskNSFW $s.Sensitive)}} {{if (and $.Ctx.MaskNSFW $s.Sensitive)}}
<div class="status-nsfw-overlay"></div> <div class="status-nsfw-overlay"></div>
{{end}} {{end}}