Oksydan / falcon

Prestashop starter theme that provides great development experience.
GNU General Public License v3.0
263 stars 63 forks source link

🐛 [BUG] - [FIX] in brand image of product-details.tpl is missing the lazyload functionality #309

Closed maofree closed 6 months ago

maofree commented 1 year ago

Description

Hi in the product-details.tpl is missing the lazyload functionality

1

the img tag for the brand image should be so

` {images_block webpEnabled=$webpEnabled} <img src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1 1'%3E%3C/svg%3E" data-src="{$manufacturer_image_url}" class="img img-fluid manufacturer-logo lazyload" alt="{$product_manufacturer->name}"

{/images_block}`

in this mode the image will load only when the details section is visible

bye

Node.js version

v16

php version

8.1

OS and it's version

linux

Browsers

Chrome

Required module/theme

theme

Reproduction steps

1. go to see product-details.tpl

Logs

No response

Oksydan commented 1 year ago

Hi @maofree,

thank you for creating an issue. I will apply suggested changes in version 4. We are no longer are using vanilla-lazyload library. Instead we moved to native lazy load solution. So proposed solution isn't valid for upcoming version. I am going to fix it in next verion. Feel free to submit PR to develop branch but remember to create your branch from develop branch.

Oksydan commented 6 months ago

Lazyload has been added for this image on develop branch. I am closing this issue.