Added lazy loading to product images
This commit is contained in:
		| @@ -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> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user