Skip to content

Commit ba54f34

Browse files
committed
Set loading='lazy' to each image in top page
1 parent 907fcd4 commit ba54f34

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

index.html

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,11 @@
138138
<!--<div id="header"></div>-->
139139
<div id="header_logo_index">
140140
<div class="logo_area">
141-
<p class="logo"><img src="/img/logo.png" alt="{{ site.title }}" title="{{ site.title }}" width="300px" /></p>
141+
<p class="logo">
142+
<img src="/img/logo.png" width="300px" loading="lazy"
143+
alt="{{ site.title }}"
144+
title="{{ site.title }}" />
145+
</p>
142146
</div>
143147
<a href="#index_content1" class="link"><span>Start content</span></a>
144148
</div>
@@ -156,7 +160,9 @@
156160
<div id="logo_image">
157161
<h1 class="logo">
158162
<a href="/" title="{{ site.title }}">
159-
<img src="/img/logo.png" alt="{{ site.title }}" title="{{ site.title }}" width="300px" />
163+
<img src="/img/logo.png" width="300px" loading="lazy"
164+
alt="{{ site.title }}"
165+
title="{{ site.title }}" />
160166
</a>
161167
</h1>
162168
</div>
@@ -181,7 +187,9 @@ <h3 class="headline rich_font" style='margin-top: 70px;'>CoderDojo とは?</h3
181187
</div>
182188

183189
<div class="index_content2">
184-
<img src="/img/cover-photo.jpg" title="DojoCon Japan Cover Photo" alt="DojoCon Japan Cover Photo" />
190+
<img src="/img/cover-photo.jpg" loading="lazy"
191+
alt="DojoCon Japan Cover Photo"
192+
title="DojoCon Japan Cover Photo" />
185193
</div>
186194
</div><!-- END #index_content1 -->
187195

@@ -199,9 +207,9 @@ <h3 class="headline rich_font">DojoCon Japan 開催例</h3>
199207
<div class='box clearfix' style='margin-bottom: 50px;'>
200208
<div class="image">
201209
<a href="{{ event.url }}">
202-
<img src="/img/events/{{ event.img }}"
203-
alt="DojoCon Japan {{ event.year }} @ {{ event.venue }}"
204-
title="DojoCon Japan {{ event.year }} @ {{ event.venue }}" />
210+
<img src="/img/events/{{ event.img }}" loading="lazy"
211+
alt="DojoCon Japan {{ event.year }} @ {{ event.venue }}"
212+
title="DojoCon Japan {{ event.year }} @ {{ event.venue }}" />
205213
</a>
206214
</div>
207215

@@ -273,7 +281,9 @@ <h3 class="headline">
273281
<div id="footer_logo">
274282
<div class="logo_area">
275283
<p class="logo">
276-
<img src="/img/logo.png" alt="{{ site.title }}" title="{{ site.title }}" width="300px" />
284+
<img src="/img/logo.png" width="300px" loading="lazy"
285+
alt="{{ site.title }}"
286+
title="{{ site.title }}" />
277287
</p>
278288
</div>
279289
</div>

0 commit comments

Comments
 (0)