Skip to content

Commit 2361028

Browse files
committed
Add lazy-loaded image
1 parent a4bd37c commit 2361028

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

partials/section.embedded.hbs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,16 @@
99
alt="Image Example" />
1010
<!-- End of #subsection-image -->
1111

12+
<!-- Start of #subsection-broken-image -->
13+
<h3 id="subsection-lazy-loaded-image">Lazy-loaded Image</h3>
14+
<img
15+
src="http://placehold.it/500x500?text=Lazy-Loaded+Image+Example"
16+
loading="lazy"
17+
width="500"
18+
height="500"
19+
alt="Lazy-loaded Image" />
20+
<!-- End of #subsection-broken-image -->
21+
1222
<!-- Start of #subsection-broken-image -->
1323
<h3 id="subsection-broken-image">Broken Image</h3>
1424
<img

partials/section.table-of-contents.hbs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
<li><a href="#section-embedded">Embedded</a>
2727
<ol>
2828
<li><a href="#subsection-image">Image</a></li>
29+
<li><a href="#subsection-lazy-loaded-image">Lazy-loaded Image</a></li>
2930
<li><a href="#subsection-broken-image">Broken Image</a></li>
3031
<li><a href="#subsection-figure-with-caption">Figure with Caption</a></li>
3132
<li><a href="#subsection-inline-svg">Inline <abbr>SVG</abbr></a></li>

0 commit comments

Comments
 (0)