Skip to content

Commit b1abd67

Browse files
committed
Update sponsors snippet: add lazy loading to logos and remove fallback for missing logos
1 parent c64e523 commit b1abd67

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

content/snippets/sponsors.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,9 @@
2424
<?php if ($sponsor->hasLogo()): ?>
2525
<img class="w-auto max-h-[100px] inline object-contain"
2626
src="<?= $sponsor->getLogo() ?>"
27-
alt="<?= $sponsor->getName() ?>"
27+
alt=""
28+
loading="lazy"
2829
/>
29-
<?php else: ?>
30-
<div class="w-full h-full flex items-center justify-center bg-gray-100">
31-
<span class="text-gray-400 text-sm">No logo</span>
32-
</div>
3330
<?php endif; ?>
3431
</div>
3532
<div class="mt-auto">

0 commit comments

Comments
 (0)