aboutsummaryrefslogtreecommitdiff
path: root/app/views/index/global.phtml
diff options
context:
space:
mode:
authorGravatar upskaling <upskaling@users.noreply.github.com> 2020-05-10 20:12:13 +0000
committerGravatar GitHub <noreply@github.com> 2020-05-10 22:12:13 +0200
commitbd8f6f19b60f478c8b1ac1f480f3894829ee9ba9 (patch)
tree6576e67ccc1e374f94f4286ae8922ce549aa407d /app/views/index/global.phtml
parentaea38065901408c8b6d0bb0b619f21fd81fc9347 (diff)
add lazy loading on favicon (#2962)
Diffstat (limited to 'app/views/index/global.phtml')
-rw-r--r--app/views/index/global.phtml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/index/global.phtml b/app/views/index/global.phtml
index e173b1b59..af16a0bfa 100644
--- a/app/views/index/global.phtml
+++ b/app/views/index/global.phtml
@@ -38,7 +38,7 @@
$url_base['params']['get'] = 'f_' . $feed->id();
?>
<li id="f_<?= $feed->id() ?>" class="item feed<?= $error, $empty, $feed->mute() ? ' mute' : '' ?>" data-unread="<?= $feed->nbNotRead() ?>" data-priority="<?= $feed->priority() ?>">
- <?php if (FreshRSS_Context::$user_conf->show_favicons): ?><img class="favicon" src="<?= $feed->favicon() ?>" alt="✇" /><?php endif; ?>
+ <?php if (FreshRSS_Context::$user_conf->show_favicons): ?><img class="favicon" src="<?= $feed->favicon() ?>" alt="✇" loading="lazy" /><?php endif; ?>
<a class="item-title" data-unread="<?= format_number($feed->nbNotRead()) ?>" href="<?= Minz_Url::display($url_base) ?>"><?= $feed->name() ?></a>
</li>
<?php } ?>