Add lazy loading img and fix friend ranking

This commit is contained in:
cuom1999 2024-04-14 00:23:14 -05:00
parent 4a2bc46206
commit 86815fb460
10 changed files with 11 additions and 11 deletions

View file

@ -1,7 +1,7 @@
<span class="{{ profile.css_class }} {{'user-with-img' if show_image}}">
{% if show_image %}
<span class="user-img">
<img src="{{gravatar(profile)}}">
<img loading="lazy" src="{{gravatar(profile)}}">
</span>
{% endif %}
<a href="{{ url('user_page', profile.username) }}">

View file

@ -5,7 +5,7 @@
{% endblock %}
{% block after_rank %}
<td><img style="border: 2px solid lightblue; max-width: none;" class="user-img" src="{{ gravatar(user, 45) }}" height="45px" width="45px"></td>
<td><img loading="lazy" style="border: 2px solid lightblue; max-width: none;" class="user-img" src="{{ gravatar(user, 45) }}" height="45px" width="45px"></td>
{% endblock %}
{% block user_footer %}