Skip to content
Permalink
Browse files
Merge pull request #5856 from internetarchive/feature/category-img-lazy
Make category images on homepage lazy
  • Loading branch information
cdrini committed Nov 11, 2021
2 parents 1750b5f + e6fff80 commit aa67a1ba7cd70e10246f7a75d435f69fce7cd7da
Showing with 1 addition and 0 deletions.
  1. +1 −0 openlibrary/templates/home/categories.html
@@ -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>

0 comments on commit aa67a1b

Please sign in to comment.