Zen Cart Logo
Forums / All Other Contributions/Addons / Image Lazy Loader for the product listing page

Image Lazy Loader for the product listing page

Views: 10,031

Results 21 to 40 of 41
4 Jul 2015, 1:18 PM
#21
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Image Lazy Loader for the product listing page

delia:

Done - https://github.com/wiztechinc/zc-lazy-loader

Thanks.. will work on this tomorrow..

4 Jul 2015, 3:10 PM
#22
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Image Lazy Loader for the product listing page

delia:

Done - https://github.com/wiztechinc/zc-lazy-loader

Pull request submitted..

27 Mar 2018, 12:08 AM
#23
jonnyrrr avatar

jonnyrrr

New Zenner

Join Date:
Feb 2012
Posts:
7
Plugin Contributions:
0

Re: Image Lazy Loader for the product listing page

Hi all

I realise that this thread is quite old and with the current version (1.1) of the Lazy Load plugin very few people are facing the same problem, but I am trying to integrate the current version of the Lazy Load plugin into Zen cart 1.3.9h (which I'm still using for reasons I won't go into at present), I have seen that it should work for previous versions of Zen cart but I can't find the additional file modifications that need to be made, I'm pretty sure that product_listing.php will require some modification but are there any other files and what will the modifications be, hoping someone in the know can fill in the blanks for me? Thank you in advance for any help.

27 Mar 2018, 10:17 AM
#24
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Re: Image Lazy Loader for the product listing page

I have this working on ZC v1.5.5f, not sure about the compatibility with your version though. I just follow the instructions in the readme.txt. From memory - the only thing to be careful with is the modification of the /modules/your_template/product_listing.php file.

28 Mar 2018, 11:48 AM
#25
jonnyrrr avatar

jonnyrrr

New Zenner

Join Date:
Feb 2012
Posts:
7
Plugin Contributions:
0

Re: Image Lazy Loader for the product listing page

That's exactly what I have done, with all the versions of Lazy Loader I could find, I even pulled the Master from Github, but none of them seem to be backwards compatible as far as my now ancient 1.3.9h, but thanks for your help/advice none the less Simon.

28 Mar 2018, 3:23 PM
#27
jonnyrrr avatar

jonnyrrr

New Zenner

Join Date:
Feb 2012
Posts:
7
Plugin Contributions:
0

Re: Image Lazy Loader for the product listing page

Thank again for that Simon, I had already seen the first one in the list but not the echo image load version, must have glossed over that by mistake as I actually have a zen cart codes account, I will give the echo version a try and let you know the results, once again thank for your help.

28 Mar 2018, 6:22 PM
#28
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Re: Image Lazy Loader for the product listing page

One thing I've found with some mods that use javascript is that there is sometimes a conflict with other jscript files loaded on the site. Usually it's because of the order in which they've been loaded. If the 'Echo' mod doesn't work - would suggest you remove all but the lazy loader jscript files and see if that works, if so add them back one by one to see where the conflict is.

29 Mar 2018, 3:33 PM
#29
jonnyrrr avatar

jonnyrrr

New Zenner

Join Date:
Feb 2012
Posts:
7
Plugin Contributions:
0

Re: Image Lazy Loader for the product listing page

The Echo mod is working right out of the box, thanks again for all your help on this Simon.

20 Aug 2021, 1:26 AM
#30
rlexyd avatar

rlexyd

Zen Follower

Join Date:
Nov 2006
Location:
Sydney, Australia
Posts:
473
Plugin Contributions:
0

Re: Image Lazy Loader for the product listing page

simon1066:

I have this working on ZC v1.5.5f, not sure about the compatibility with your version though. I just follow the instructions in the readme.txt. From memory - the only thing to be careful with is the modification of the /modules/your_template/product_listing.php file.

Hi Simon,
Have you by any chance used this plugin on any of your 1.5.7c sites?
If yes, did you do anything to update it or alter it?
I am looking at making my mobile site load quicker and Google advised something like this would be good.

20 Aug 2021, 6:17 AM
#31
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Re: Image Lazy Loader for the product listing page

rlexyd:

Hi Simon,
Have you by any chance used this plugin on any of your 1.5.7c sites?
If yes, did you do anything to update it or alter it?
I am looking at making my mobile site load quicker and Google advised something like this would be good.

I do have this working on a ZC v1.57c site. I'm not the best at making notes so am not sure if I had to tweak it.

Edit: actually I don't think I'm using the lazy loader referenced in this thread. I'll have to go through my plugin backups to identify the actual one.

20 Aug 2021, 6:25 AM
#32
rlexyd avatar

rlexyd

Zen Follower

Join Date:
Nov 2006
Location:
Sydney, Australia
Posts:
473
Plugin Contributions:
0

Re: Image Lazy Loader for the product listing page

Ok thanks, will give it a go on my test site and see how it goes.

20 Aug 2021, 6:31 AM
#33
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Re: Image Lazy Loader for the product listing page

simon1066:

I do have this working on a ZC v1.57c site. I'm not the best at making notes so am not sure if I had to tweak it.

Edit: actually I don't think I'm using the lazy loader referenced in this thread. I'll have to go through my plugin backups to identify the actual one.

Contrary to my edit, I am indeed using the plugin in this thread.

20 Aug 2021, 6:37 AM
#34
rlexyd avatar

rlexyd

Zen Follower

Join Date:
Nov 2006
Location:
Sydney, Australia
Posts:
473
Plugin Contributions:
0

Re: Image Lazy Loader for the product listing page

Thanks, so you see much difference when doing the Google light house test?

20 Aug 2021, 7:29 AM
#35
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Re: Image Lazy Loader for the product listing page

rlexyd:

Thanks, so you see much difference when doing the Google light house test?

I haven't really compared speeds using Lighthouse but as it reduces the number of images loaded on the initial page visit then it will always make a positive difference, how much of a difference will depend on the number of products you are showing on the product listing page (admin > configuration > maximum values > Products Listing- Number Per Page) and the size of those images.

Because I have this plugin I tend to set that value to a high number to reduce (or eliminate) the number of prev/next pages the customer has to navigate.

20 Aug 2021, 11:04 AM
#36
rlexyd avatar

rlexyd

Zen Follower

Join Date:
Nov 2006
Location:
Sydney, Australia
Posts:
473
Plugin Contributions:
0

Re: Image Lazy Loader for the product listing page

Does this not work on "Show All Products" page?

3 Aug 2022, 2:29 PM
#37
oopsibrickedit avatar

oopsibrickedit

Zen Follower

Join Date:
Mar 2012
Posts:
132
Plugin Contributions:
0

Re: Image Lazy Loader for the product listing page

ZC 1.5.0 with 1.5.1 cache maria db 10.x nginx jquery 2.2.4 min

Hi Dear Zen Cart folks,

been sick for a long time but now feeling little better and tried to improve one old site to make it load faster with lazy loader.

I used Diva vocals addons and lazy loading works fine on all pages but checkout_confirmation aka. last step fails. This is related to lazyloader script but there is no error messages on chrome dev tools so I am a bit clueless what could be going wrong. On checkout process there is an submitonce() script added at some point but it has worked earlier fine.

Any help would be highly appreciated to haunt this bug down,

3 Aug 2022, 3:27 PM
#38
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Re: Image Lazy Loader for the product listing page

OopsIbrickedIT:

ZC 1.5.0 with 1.5.1 cache maria db 10.x nginx jquery 2.2.4 min

Hi Dear Zen Cart folks,

been sick for a long time but now feeling little better and tried to improve one old site to make it load faster with lazy loader.

I used Diva vocals addons and lazy loading works fine on all pages but checkout_confirmation aka. last step fails. This is related to lazyloader script but there is no error messages on chrome dev tools so I am a bit clueless what could be going wrong. On checkout process there is an submitonce() script added at some point but it has worked earlier fine.

Any help would be highly appreciated to haunt this bug down,

Not strictly an answer to your query but,

I used to use the Lazy Loading plugin but have now switched to the native lazy loading supported by the majority of browsers, saving on the overhead created by the various files the plugin uses.

e.g. in includes/modules/your_template/product_listing.php find

class="listingProductImage"

and follow it with

loading="lazy"
3 Aug 2022, 4:35 PM
#39
oopsibrickedit avatar

oopsibrickedit

Zen Follower

Join Date:
Mar 2012
Posts:
132
Plugin Contributions:
0

Re: Image Lazy Loader for the product listing page

Thank you Simon very much! I must in the future do the same. But now checkout is not working and the site is live so have to dig up what causes it quickly. Old templates and lots of merged files does not make it easy though for me.

3 Aug 2022, 4:56 PM
#40
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Re: Image Lazy Loader for the product listing page

OopsIbrickedIT:

...but checkout_confirmation aka. last step fails. This is related to lazyloader script but there is no error messages ...

What makes you think that the fail is 'related to lazyloader script'. If it is have you tried disabling LazyLoader?