Skip to content

Commit

Permalink
fix(storefront): BCTHEME-16 Cornerstone - loading of thumbnail image …
Browse files Browse the repository at this point in the history
…delayed on cart page (bigcommerce#1925)
  • Loading branch information
yurytut1993 committed Dec 11, 2020
1 parent 29057a2 commit 63c240b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Changelog

## Draft
- Cornerstone - loading of thumbnail image delayed on cart page . [#1925](https://github.com/bigcommerce/cornerstone/pull/1925)
- Parse HTML entities in jsContext. [#1917](https://github.com/bigcommerce/cornerstone/pull/1917)
- Product images squashed in Category view in AMP. [#1921](https://github.com/bigcommerce/cornerstone/pull/1921)
- Fixed misaligned tooltip for required product option. [#1915](https://github.com/bigcommerce/cornerstone/pull/1915)
Expand Down
16 changes: 10 additions & 6 deletions templates/components/cart/content.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,17 @@
title="{{lang 'cart.gift_certificate'}}"
>
{{else}}
{{> components/common/responsive-img
image=image
<img
{{#if image}}
src="{{getImageSrcset image 1x=(default fallback_size ../theme_settings.productthumb_size)}}"
srcset="{{getImageSrcset image 1x=(default fallback_size ../theme_settings.productthumb_size) 2x=(default fallback_size '200x200')}}"
title="{{image.alt}}"
alt="{{image.alt}}"
{{else if ../theme_settings.default_image_product}}
src="{{cdn ../theme_settings.default_image_product}}"
{{/if}}
class="cart-item-image"
fallback_size=../theme_settings.productthumb_size
lazyload='disabled'
default_image=../theme_settings.default_image_product
}}
/>
{{/if}}
</td>
<td class="cart-item-block cart-item-title">
Expand Down

0 comments on commit 63c240b

Please sign in to comment.