Added lazy loading to product images
This commit is contained in:
parent
7dbdcdcd4f
commit
db83438bae
@ -7,7 +7,7 @@
|
|||||||
<a href="{{ url_for('main.products.product', id=product.id) }}" class="product product-link">
|
<a href="{{ url_for('main.products.product', id=product.id) }}" class="product product-link">
|
||||||
<div class="product-title">{{product.name}}</div>
|
<div class="product-title">{{product.name}}</div>
|
||||||
<div class="product-content-container">
|
<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-details">
|
||||||
<div class="product-price">£{{product.cost}}</div>
|
<div class="product-price">£{{product.cost}}</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user