![]() |
|
Does Zenphoto support lazy loading of images? - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Does Zenphoto support lazy loading of images? (/thread-13080.html) |
Does Zenphoto support lazy loading of images? - Goodfreephotos - 2018-06-16 Hi, Does Zenphoto support lazy loading of images? - acrylian - 2018-06-16 No, but it will in the future natively ("next major release"). But you can create a theme to do so already. But you can already setup your theme to use lazy loading by using the Does Zenphoto support lazy loading of images? - Goodfreephotos - 2018-06-16 that means I have to modify the print function doesn't it? I hate doing that. I basically gets overwritten every time I update. When is the next major release coming? Also, I wonder if you guys plan on updating the search algorithem anytime soon. I kind of want it where for the results, it gets you first where the title has your search term, then tags, then description. Does Zenphoto support lazy loading of images? - acrylian - 2018-06-16
No, there are always "print" versions with full html setup and there are "get" versions that just get the url of an image (and there is the core object model, too). Use those with an `` element and you can do almost anything on your theme.
No, no changes planned. Does Zenphoto support lazy loading of images? - Goodfreephotos - 2018-06-16 Whats the exact name of the function, looking at the docs, I can't see $getLatestImages Does Zenphoto support lazy loading of images? - acrylian - 2018-06-17 You didn't tell about latest images… Then you will have to do some work. You have to use this to get data of the latest images: Then loop through objects you get and create the custom output you want. Use https://docs.zenphoto.org/function-printImageStatistic.html as the guide. If you need modifications copy the function code to your theme's Does Zenphoto support lazy loading of images? - Goodfreephotos - 2018-06-18 I've been working with printLatestImages and I thought I got it to work but I just made the following changes: [code] case 0: width, NULL, NULL, NULL, NULL, NULL, NULL, $image); [/code] But the images don't how on goodfreephotos.com I also the correct jquery classes loaded its the same as the ones on goodfreephotos.com/testdoc.php and that one works, I can't figure out why it doesn't work on my main page. Does Zenphoto support lazy loading of images? - acrylian - 2018-06-18 Sorry, make sure you escape code examples on the forum in ``` correctly. The code example above are unreadable. This might give you a hint You include jquery two times. Zenphoto's (we currently require an older one for some dependencies) and another one so probably you have the conflict here. Does Zenphoto support lazy loading of images? - Goodfreephotos - 2018-06-18 I think it is the conflict that is causing the issue But I need both the google and the cloudfalre for the lazy load to work, what is causing the conflict? Does Zenphoto support lazy loading of images? - Goodfreephotos - 2018-06-18 I just took the filter "theme-head" out, what does that do? Does Zenphoto support lazy loading of images? - acrylian - 2018-06-19 Try to use another lazyload script. I preferredly use this and it works with rather "any" jQuery: https://github.com/aFarkas/lazysizes The theme_head filter call adds scripts by plugins and a lot more and you NEVER should just remove that. If you need to remove something from the filter, you should unregister a specific attachment using https://docs.zenphoto.org/function-zp_remove_filter.html |