- This module is used to lazy load product images.
- Compatible with all themes of Prestashop 1.6 and Prestashop1.7
- It helps dramatically to improve website pages loading and it reduces your bounce rate.
Result: Good website experience and SEO improvement.
----------------------------------------------------
By this one:
Regenerating home_default image type thumbnails for products can fix the problem.
- Compatible with all themes of Prestashop 1.6 and Prestashop1.7
- It helps dramatically to improve website pages loading and it reduces your bounce rate.
Result: Good website experience and SEO improvement.
----------------------------------------------------
Installation on Prestashop 1.7
- Download the module, install it from BO > Modules page.
- Edit the \themes\yourtheme\templates\catalog\_partials\miniatures\product.tpl file.
1 2 | "> <img src = "{$product.cover.bySize.home_default.url}" |
1 2 3 | is_stlazyloading"> <img src="{$stlazyloading.img_prod_url}{$stlazyloading.lang_iso_code}-default-home_default.jpg" class="stlazyloading_holder" width="{$product.cover.bySize.home_default.width}" height="{$product.cover.bySize.home_default.height}" alt="{if !empty($product.cover.legend)}{$product.cover.legend}{else}{$product.name}{/if}" /> <img data-src = "{$product.cover.bySize.home_default.url}" class="stlazyloadthis" |
Installation on Prestashop 1.6
- Download the module, install it from BO > Modules page.
- Edit the \themes\yourtheme\product-list.tpl file.
1 is_stlazyloading 1 <img src="{$img_prod_dir}{$lang_iso}-default-home_default.jpg" class="stlazyloading_holder" {if isset($homeSize)} width="{$homeSize.width}" height="{$homeSize.height}"{/if} /> 1 stlazyloadthis 1 data- - Add this code to the bottom part of the reloadContent function in the \themes\yourtheme\js\modules\blocklayered\blocklayered.js file.
1
2if (typeof(stlazyloading) == 'function')
stlazyloading($('img.stlazyloadthis'));
Troubleshot
If you get a message like this "en-default-home_default.jpg can not be load".Regenerating home_default image type thumbnails for products can fix the problem.