Skip to content

Commit

Permalink
fix(img): lazy load for all matching images
Browse files Browse the repository at this point in the history
  • Loading branch information
thejoeejoee committed Jan 22, 2024
1 parent 700646b commit 9bfe43a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
<img src="{{ fr.issuer_picture_url }}"
alt="{% trans "request issuer photo" %}"
width="{{ fr.issuer.profile.picture.width }}"
height="{{ fr.issuer.profile.picture.height }}">
height="{{ fr.issuer.profile.picture.height }}"
loading="lazy">
{% else %}
<svg version="1.1"
xmlns="http://www.w3.org/2000/svg"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ <h2 class="card-title flex flex-row justify-between">
<img src="{{ br.issuer_picture_url }}"
width="{{ issuer_picture.width }}"
height="{{ issuer_picture.height }}"
alt="Issuer picture" />
alt="Issuer picture"
loading="lazy" />
{% else %}
<span class="w-10 aspect-square text-white text-lg flex flex-row justify-center items-center group"
style="background-color: {{ br.issuer.id|get_color_by_text }}">{{ br.issuer.first_name|first }}{{ br.issuer.last_name|first }}</span>
Expand Down Expand Up @@ -61,7 +62,8 @@ <h2 class="card-title flex flex-row justify-between">
<img src="{{ br.match.matcher_picture_url }}"
width="{{ matcher_picture.width }}"
height="{{ matcher_picture.height }}"
alt="Matcher picture" />
alt="Matcher picture"
loading="lazy" />
{% else %}
<span class="w-10 aspect-square text-white text-lg flex flex-row justify-center items-center group"
style="background-color: {{ br.match.matcher.id|get_color_by_text }}">{{ br.match.matcher.first_name|first }}{{ br.match.matcher.last_name|first }}</span>
Expand Down

0 comments on commit 9bfe43a

Please sign in to comment.