Let image thumbnails lazy load.

This commit is contained in:
voussoir 2020-08-15 22:28:53 -07:00
parent de5aba4895
commit 17cd98fa50

View file

@ -245,7 +245,7 @@ https://stackoverflow.com/a/35153397
onclick="onclick_select(event)" onclick="onclick_select(event)"
class="video_card video_card_{{video.download}}" class="video_card video_card_{{video.download}}"
> >
<img class="video_thumbnail" src="http://i3.ytimg.com/vi/{{video.id}}/default.jpg" height="100px"> <img class="video_thumbnail" loading="lazy" src="http://i3.ytimg.com/vi/{{video.id}}/default.jpg" height="100px">
<div class="video_details"> <div class="video_details">
<a class="video_title" href="https://www.youtube.com/watch?v={{video.id}}">{{video._published_str}} - {{video.title}}</a> <a class="video_title" href="https://www.youtube.com/watch?v={{video.id}}">{{video._published_str}} - {{video.title}}</a>
<span>({{video.duration | seconds_to_hms}})</span> <span>({{video.duration | seconds_to_hms}})</span>