Skip to content

Commit

Permalink
Merge pull request #4933 from okazy/feat/lazy-load
Browse files Browse the repository at this point in the history
商品詳細画面の商品画像を lazyload に対応
  • Loading branch information
chihiro-adachi authored Mar 23, 2021
2 parents d2ca0d1 + 31e7f38 commit c46e77c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Eccube/Resource/template/default/Product/list.twig
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ file that was distributed with this source code.
<li class="ec-shelfGrid__item">
<a href="{{ url('product_detail', {'id': Product.id}) }}">
<p class="ec-shelfGrid__item-image">
<img src="{{ asset(Product.main_list_image|no_image_product, 'save_image') }}">
<img src="{{ asset(Product.main_list_image|no_image_product, 'save_image') }}" loading="lazy">
</p>
<p>{{ Product.name }}</p>
{% if Product.description_list %}
Expand Down

0 comments on commit c46e77c

Please sign in to comment.