mirror of
https://github.com/friendica/friendica
synced 2024-11-10 03:02:54 +00:00
add lazy loading for images
This commit is contained in:
parent
93a3c6ee59
commit
3a90e0f7f2
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
{{if $image.preview}}
|
||||
<a data-fancybox="{{$image.uri_id}}" href="{{$image.attachment.url}}"><img src="{{$image.preview}}" alt="{{$image.attachment.description}}" title="{{$image.attachment.description}}"></a>
|
||||
<a data-fancybox="{{$image.uri_id}}" href="{{$image.attachment.url}}"><img src="{{$image.preview}}" alt="{{$image.attachment.description}}" title="{{$image.attachment.description}}" loading="lazy"></a>
|
||||
{{else}}
|
||||
<img src="{{$image.src}}" alt="{{$image.attachment.description}}" title="{{$image.attachment.description}}">
|
||||
<img src="{{$image.src}}" alt="{{$image.attachment.description}}" title="{{$image.attachment.description}}" loading="lazy">
|
||||
{{/if}}
|
||||
|
|
Loading…
Reference in a new issue