Skip to content

Commit

Permalink
Merge pull request #5856 from internetarchive/feature/category-img-lazy
Browse files Browse the repository at this point in the history
Make category images on homepage lazy
  • Loading branch information
cdrini authored Nov 11, 2021
2 parents 1750b5f + e6fff80 commit aa67a1b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions openlibrary/templates/home/categories.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ <h2 class="home-h2"><a href="/subjects">$_('Browse by Subject')</a></h2>
<div class="category-icon">
<img class="category-img" src="/static/images/categories/$(icon).svg"
width="30" height="30"
loading="lazy"
alt="$_('browse %(subject)s books', subject=presentable_subject_name)"/>
</div>
<p class="category-title">$presentable_subject_name</p>
Expand Down

0 comments on commit aa67a1b

Please sign in to comment.