diff options
author | Bryan Newbold <bnewbold@archive.org> | 2021-01-15 04:08:06 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2021-01-19 19:49:39 -0800 |
commit | c934f3d426427b3093cae8f8f5e9245a34ff3450 (patch) | |
tree | 18757896ec3635102dc4a1c56e4f70c7ace1ba3b /fatcat_scholar | |
parent | 4dd3dd3fb3f4444c4866e8b626ff8f00d628b4ce (diff) | |
download | fatcat-scholar-c934f3d426427b3093cae8f8f5e9245a34ff3450.tar.gz fatcat-scholar-c934f3d426427b3093cae8f8f5e9245a34ff3450.zip |
html: only lazy-load thumbnail images
Diffstat (limited to 'fatcat_scholar')
-rw-r--r-- | fatcat_scholar/templates/search_macros.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fatcat_scholar/templates/search_macros.html b/fatcat_scholar/templates/search_macros.html index 4ef9c48..d120d12 100644 --- a/fatcat_scholar/templates/search_macros.html +++ b/fatcat_scholar/templates/search_macros.html @@ -228,7 +228,7 @@ {% endif %} {% if paper.fulltext and paper.fulltext.thumbnail_url %} <div class="menu" style="left: -110%; margin-top: -2.5em;"> - <img src="{{ paper.fulltext.thumbnail_url }}" alt="fulltext thumbnail"> + <img src="{{ paper.fulltext.thumbnail_url }}" alt="fulltext thumbnail" loading="lazy"> </div> {% endif %} </button> @@ -350,7 +350,7 @@ <h2>{% trans %}Access Options{% endtrans %}</h2> {% if paper.fulltext and paper.fulltext.thumbnail_url %} <a href="{{ paper.fulltext.access_url }}"> - <img src="{{ paper.fulltext.thumbnail_url }}" alt="fulltext thumbnail"> + <img src="{{ paper.fulltext.thumbnail_url }}" alt="fulltext thumbnail" loading="lazy"> </a> {% endif %} |