Skip to content

Commit d13d758

Browse files
committed
Lazy load these
1 parent 36093e7 commit d13d758

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/templates/pages/error_default.txp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<p>Please <a href="<txp:site_url />">return to the Textpattern homepage</a>.</p>
2929
</div>
3030
<div class="layout-2col">
31-
<p><img class="dark-contrast" width="556" height="406" alt="Page error" src="https://textpattern.com/assets/img/com/error.png" srcset="https://textpattern.com/assets/img/com/[email protected] 2x"></p>
31+
<p><img loading="lazy" class="dark-contrast" width="556" height="406" alt="Page error" src="https://textpattern.com/assets/img/com/error.png" srcset="https://textpattern.com/assets/img/com/[email protected] 2x"></p>
3232
</div>
3333
</div>
3434
</div>

src/templates/pages/showcase.txp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
<txp:images limit="1">
9393
<txp:smd_thumbnail type="showcase-teaser-318w212h">
9494
<span itemprop="image" itemscope itemtype="https://schema.org/ImageObject">
95-
<img class="img--showcase" width="318" height="212" alt="<txp:image_info type="alt" />" src="<txp:smd_thumbnail_info item="url" />" srcset="<txp:image_url /> 2x" itemprop="url contentUrl">
95+
<img loading="lazy" class="img--showcase" width="318" height="212" alt="<txp:image_info type="alt" />" src="<txp:smd_thumbnail_info item="url" />" srcset="<txp:image_url /> 2x" itemprop="url contentUrl">
9696
<meta itemprop="width" content="318">
9797
<meta itemprop="height" content="212">
9898
</span>

0 commit comments

Comments
 (0)