Skip to content

Commit

Permalink
refactor: 이미지 lazy loading
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoya324 committed Dec 4, 2024
1 parent bd96695 commit e9a3b56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ <h3 class="typewriter-text">나경호의<br>사진 저장소입니다.</h3>
<section id="galleryGrid" class="gallery-grid">
{% for photo in site.data.photos %}
<div class="gallery-item" onclick="openLightbox('{{ '/assets/images/gallery/' | append: photo.src }}')">
<img src="{{ '/assets/images/gallery/' | append: photo.src }}" alt="{{ photo.alt }}">
<img src="{{ '/assets/images/gallery/' | append: photo.src }}" loading="lazy" alt="{{ photo.alt }}">
</div>
{% endfor %}
</section>
Expand Down

0 comments on commit e9a3b56

Please sign in to comment.