Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Sayontan Sinha

    (@sayontan)

    This is not a bug/issue.

    This specific point has been addressed multiple times on this forum: lazy loading does not work with layouts such as Justified Grid or Mosaic.

    Why? This is because Justified Grid or Mosaic need to know the image size (and for that it needs to load the full image) before rendering the layout, but lazy loading prevents the full image from loading.

    Other plugins can get lazy loading to work with Justified Grids because they deal with local images. For an image in a user’s WP Media Library, WordPress itself stores the height and width, so a plugin that is dealing with local images to build a justified grid can construct a layout’s dimensions before the image is loaded. But Photonic, for the most part, pulls images from external sources, and those sources don’t provide the size of the photo anywhere.

    Thread Starter pako69

    (@pako69)

    Hi @sayontan Thanks for the explanation but in my case, I only use local WordPress images. I don’t need at all to pull images from social networks.

    So will it be possible to you to adjuste your code to make it work with lazyload plugin AND local images?

    If not, it’s bad for our website speed… ^^

    Thanks

    Plugin Author Sayontan Sinha

    (@sayontan)

    Not at the moment – making the change for local galleries is not currently a priority for me.

    Bear in mind that Photonic is significantly optimized in multiple ways – small files, loading files only when required on a page, parallel calls to services, fast rendering algorithms, ability to use different image sizes etc.

    One thing you can try is to use the concept of a “Tile size”. Note that Photonic has 3 different supported sizes – a thumb size (used for square layouts), a tile size (used for justified grids, mosaic and masonry layouts) and a full size (used for lightboxes). When you are constructing a gallery, the Justified Grid by default uses the “main size” i.e. what is displayed in your lightbox (in case of native galleries, depending on your theme, this is almost always the full or original-sized image). If you set the tile size to be the “Medium” sized image instead, your lightbox will still show the full image, but your page will load the medium sized image. If your full-sized image is 3000px × 4000px, and your medium-sized image is 450px × 600px, this is a huge reduction in image size, which makes your page load a lot faster.

    • This reply was modified 6 years, 2 months ago by Sayontan Sinha. Reason: Added more clarity
    Thread Starter pako69

    (@pako69)

    hey, that is already I’m doing with your plugin 😉
    But I’m forced to disable my Lazy Load plugin for all my website only because of the restrictions you said.
    I’m trying to find a php snipet to exclude Photonic Gallery Images to be lazyloaded…
    By the way thanks for this great and most of all, free plugin !

    Thread Starter pako69

    (@pako69)

    May I suggest you to add this question to your FAQ: https://ww.wp.xz.cn/plugins/photonic/#faq ?
    😉
    Thanks

    Plugin Author Sayontan Sinha

    (@sayontan)

    Sure, I will add it for the next version.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Issue with lazy load’ is closed to new replies.