- This topic has 13 replies, 7 voices, and was last updated 1 year, 8 months ago by David.
October 31, 2017 at 7:52 am #413660Borja
I’ve been trying to use a Lazy load plugin as lazy load, a3 lazy load and lazy load by rocket. But none of them have worked in my theme and I’m struggling why it can be.
is there any lazy load plugin that actually works?
my website: http://www.az-carreras.comOctober 31, 2017 at 11:57 am #413809LeoStaffCustomer SupportNovember 1, 2017 at 11:01 am #414410Borja
I’m not getting any error, basically it is that it doesn’t work, doesn’t do the lazy load when I activate the plugin.November 1, 2017 at 5:58 pm #414575LeoStaffCustomer SupportNovember 18, 2017 at 3:39 am #427350Roman
Hi Borja, Leo,
unfortunately this is an old problem which has not been fixed until today:
I have just updated to the latest GP version to find out that neither infinity scroll nor load more button works together with lazy load plugins.November 18, 2017 at 9:41 am #427601TomLead DeveloperLead Developer
If any of these lazy load plugins have a JS hook/trigger we can hook into, we can tell masonry to adjust the layout once they load.
Basically the masonry script needs to adjust CSS positioning once the images load. Masonry is wrapped in imagesLoaded, but I guess that’s not compatible with lazy load (that would be ideal).November 18, 2017 at 9:43 am #427603Roman
Therefore, what shall we do to get it work?November 18, 2017 at 9:53 am #427612TomLead DeveloperLead Developer
I’ll have to do some testing. If you’d like to help you can ask the developer of whatever plugin you’re using if there’s a trigger we can use to re-layout masonry once images are loaded.November 18, 2017 at 10:04 am #427621Roman
OK, I will ask authors of a3 Lazy Load plugin and I will let you know.November 18, 2017 at 10:47 am #427642TomLead DeveloperLead DeveloperAugust 6, 2019 at 2:41 am #976840sprylab
Hi Tom, Roman,
I just found this thread as I am trying to add lazy loading to my generatepress site.
This plugin https://wordpress.org/plugins/lazy-loading-responsive-images/ looks very well done and has an option to include lazysizes aspectratio plugin. This plugin calculates the needed space for images before they are loaded. That avoids content jumping when the images are loaded and makes the lazy loading work with masonry grids.
This should fix the problem or am I mistaken?
StephanAugust 6, 2019 at 4:24 am #976913DavidStaffCustomer Support
That plugin looks interesting, thanks for sharing.
There are two issues with some lazyloaders one being the sizing of the placeholder the other is they may only work on images that are present on initial load, not ajax loaded. Maybe worth testingNovember 18, 2019 at 5:35 pm #1066993Amit Nair
Was reviewing these threads before installing a lazy loading plugin. Is there any latest update? Any specific recommendation for a lazy load plugin?November 19, 2019 at 6:49 am #1067484
- You must be logged in to reply to this topic.