Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix cart dropdown image lazyloading

dominik-zeglen8c0c0313947f
diff --git a/templates/cart_dropdown.html b/templates/cart_dropdown.html
index b92efeb588..9ffceb07c0 100644
--- a/templates/cart_dropdown.html
+++ b/templates/cart_dropdown.html
@@ -57,7 +57,8 @@
<h3>{% trans "There are no products in your shopping cart." context "Empty cart message" %}</h3>
<img data-src="{% static 'images/empty-cart-bg.png' %}"
data-srcset="{% static 'images/empty-cart-bg.png' %} 1x, {% static 'images/empty-cart-bg2x.png' %} 2x"
- src="{% placeholder size=255 %}">
+ src="{% placeholder size=255 %}"
+ class="lazyload">
<a href="{% url 'home' %}" class="btn primary">{% trans "Check out our sales" context "Empty cart link" %}</a>
</div>
{% endif %}