Skip to content

Preload next slide images when lazyloading #3714

@geochanto

Description

@geochanto

When lazyloading, images get loaded immediately when entering the viewport. This sometimes causes a noticeable jumpy behavior if image is not loaded fast enough.

Is there any method to call with afterLoad and onSlideLeave to preload the next or previous slide images?

For example, if I have 5 slides, I would load images for slide 1, 2 and 5. When navigating from slide 1 -->2, I would call that method to load images for slide 3 to have it ready, and so on.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions