mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
lazy load profile pics
This commit is contained in:
parent
b40dd1444b
commit
602c83699a
2 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@
|
||||||
{% else %}
|
{% else %}
|
||||||
{% if comment['comment'].author.avatar_id and comment['comment'].score > -10 and not low_bandwidth %}
|
{% if comment['comment'].author.avatar_id and comment['comment'].score > -10 and not low_bandwidth %}
|
||||||
<a href="/u/{{ comment['comment'].author.link() }}" title="{{ comment['comment'].author.ap_id }}">
|
<a href="/u/{{ comment['comment'].author.link() }}" title="{{ comment['comment'].author.ap_id }}">
|
||||||
<img src="{{ comment['comment'].author.avatar_image() }}" alt="Avatar" /></a>
|
<img src="{{ comment['comment'].author.avatar_image() }}" alt="Avatar" loading="lazy" /></a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<a href="/u/{{ comment['comment'].author.link() }}" title="{{ comment['comment'].author.link() }}">
|
<a href="/u/{{ comment['comment'].author.link() }}" title="{{ comment['comment'].author.link() }}">
|
||||||
{{ comment['comment'].author.display_name() }}</a>
|
{{ comment['comment'].author.display_name() }}</a>
|
||||||
|
|
|
@ -74,7 +74,7 @@
|
||||||
{% else %}
|
{% else %}
|
||||||
{% if comment['comment'].author.avatar_id and comment['comment'].score > -10 and not low_bandwidth %}
|
{% if comment['comment'].author.avatar_id and comment['comment'].score > -10 and not low_bandwidth %}
|
||||||
<a href="/u/{{ comment['comment'].author.link() }}" title="{{ comment['comment'].author.ap_id }}">
|
<a href="/u/{{ comment['comment'].author.link() }}" title="{{ comment['comment'].author.ap_id }}">
|
||||||
<img src="{{ comment['comment'].author.avatar_image() }}" alt="Avatar" /></a>
|
<img src="{{ comment['comment'].author.avatar_image() }}" alt="Avatar" loading="lazy" /></a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<a href="/u/{{ comment['comment'].author.link() }}" title="{{ comment['comment'].author.link() }}">
|
<a href="/u/{{ comment['comment'].author.link() }}" title="{{ comment['comment'].author.link() }}">
|
||||||
{{ comment['comment'].author.display_name() }}</a>
|
{{ comment['comment'].author.display_name() }}</a>
|
||||||
|
|
Loading…
Add table
Reference in a new issue