Skip to content

Commit 180983e

Browse files
committed
Lazy load 2 more images
1 parent 1fa8a20 commit 180983e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/templates/pages/default.txp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
<main aria-label="Main content">
5353
<div class="wrapper-inner animation-wrapper">
5454
<div id="animation-container">
55-
<canvas id="animation" width="1150" height="480"><img width="1150" height="480" alt="Powering big ideas from a small open source CMS" src="/assets/img/com/index-animation-fallback.png"></canvas>
55+
<canvas id="animation" width="1150" height="480"><img loading="lazy" width="1150" height="480" alt="Powering big ideas from a small open source CMS" src="/assets/img/com/index-animation-fallback.png"></canvas>
5656
</div>
5757
<div id="animation-overlay">
5858
<div class="container">
@@ -291,7 +291,7 @@ foreach ($json->topic as $topic) {
291291
</txp:if_search_results>
292292
</div>
293293
<p>Please try another search term or <a href="<txp:site_url />">return to the Textpattern homepage</a>.</p>
294-
<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/error@2x.png 2x"></p>
294+
<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/error@2x.png 2x"></p>
295295
</txp:if_search_results>
296296
</div>
297297
</div>

0 commit comments

Comments
 (0)