Don't lazy-load brand image

This commit is contained in:
Jason McBrayer 2019-09-10 20:15:19 -04:00
parent d8a0e57190
commit 798e189815

View File

@ -81,16 +81,12 @@
<div class="navbar-brand"> <div class="navbar-brand">
<a class="navbar-item" href="{% url "home" %}"> <a class="navbar-item" href="{% url "home" %}">
{% if own_acct %} {% if own_acct %}
<noscript class=loading-lazy"> <img src="{{ own_acct.avatar_static }}"
<img loading="lazy" src="{{ own_acct.avatar_static }}" class="image is-32x32 avatar"
class="image is-32x32 avatar" alt="Brutaldon ('{{ own_acct.username }}')">
alt="Brutaldon ('{{ own_acct.username }}')">
</noscript>
{% else %} {% else %}
<noscript class="loading-lazy"> <img loading="lazy" src="{% static "images/brutaldon.png" %}"
<img loading="lazy" src="{% static "images/brutaldon.png" %}" class="image is-32x32" alt="Brutaldon">
class="image is-32x32" alt="Brutaldon">
</noscript>
{% endif %} {% endif %}
</a> </a>
</div> </div>