Added lazy loading to product images

This commit is contained in:
Luke Else 2024-02-26 08:04:11 +00:00
parent 7dbdcdcd4f
commit db83438bae

View File

@ -7,7 +7,7 @@
<a href="{{ url_for('main.products.product', id=product.id) }}" class="product product-link">
<div class="product-title">{{product.name}}</div>
<div class="product-content-container">
<img class="product-image-preview" src="{{ url_for('static', filename='assets/img/products/' + product.image) }}" alt="Brake Disks" />
<img class="product-image-preview" src="{{ url_for('static', filename='assets/img/products/' + product.image) }}" alt="Brake Disks" loading="lazy"/>
<div class="product-details">
<div class="product-price">£{{product.cost}}</div>