• Resolved cag8f

    (@cag8f)


    Hello. I am using your plugin on my site to lazy load images. But I am having an issue with images in an image slider. I have many pages that possess an image slider with ~20 images (example page). On initial page load, the plugin seems to download the first 5 images in the slider. When a visitor scrolls through the slider with the slider navigation arrows, and clicks through to the 6th image in the slider, the plugin will then download the next 5 images in the slider. As you can see, this results in a blank slide to briefly slide into view, while those 5 images are downloaded. Is there a way to resolve this?

    Is there a way your plugin can perhaps download the first 5 images, then, when a user clicks the slider through to the second image, the plugin can download the 6th image. And when a user clicks through to the third image, the plugin can download the 7th image, and so forth?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter cag8f

    (@cag8f)

    Hello. Has anyone had a chance to look at this issue yet?

    Plugin Contributor WP Rocket

    (@wp_rocket)

    Hi,

    Unfortunately this is not something that can be modified or configured. The images will be loaded as they come into view only.

    Thread Starter cag8f

    (@cag8f)

    OK thanks for the reply. In light of that, is it possible to submit this as a feature request? Currently the plugin downloads slides 1-5 on initial page load, and downloads slides 6-10 only when slide 6 slides into view. It might be better to download slides 1-3 on initial page load, then download slides 4-7 when slide 2 slides into view, then download slides 8-10 when slide 4 slides into view, etc.

    Plugin Contributor WP Rocket

    (@wp_rocket)

    We don’t have control over that, it depends on the positioning of the slides, when they come into the viewport (even if they are hidden, as with this slider) and on the IntersectionObserver API.

    Thread Starter cag8f

    (@cag8f)

    OK. But it seems that currently the logic is, on initial page load, slides 1-5 are downloaded. And when slide 6 slides into view, slides 6-10 are downloaded. Can’t you modify that to ensure that when slide 2 slides into view, slides 6-10 are downloaded? If not, no worries–just a suggestion that seems like it would improve the plugin. As it stands, a blank white slide is sliding into view every 5 slides, which isn’t very desirable.

    Plugin Contributor WP Rocket

    (@wp_rocket)

    No it’s not something we can change currently.

    Thread Starter cag8f

    (@cag8f)

    Right O. Well if a suggestion box exists, add this for me please.

    Thanks for the help. We can consider this resolved.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Issue with image slider’ is closed to new replies.