1
0
Fork 0
mirror of https://github.com/GuerillaStudio/vanillalist.git synced 2024-12-30 11:51:57 +00:00

Add lazy loading on images

This commit is contained in:
Tixie 2021-03-01 10:14:01 +01:00
parent 799064c0d8
commit 17502ca5f3

View file

@ -21,7 +21,8 @@ module.exports = function (plugin) {
<img <img
src="${plugin.image308}" alt="${plugin.title}" src="${plugin.image308}" alt="${plugin.title}"
srcset="${plugin.image616} 2x" srcset="${plugin.image616} 2x"
width="308" height="195"> width="308" height="195"
loading="lazy">
</picture> </picture>
</a> </a>
<h2 class="plugin__name">${plugin.title}</h2> <h2 class="plugin__name">${plugin.title}</h2>