-
Notifications
You must be signed in to change notification settings - Fork 7.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Preload next slide images when lazyloading #3714
Comments
The lazy load media elements of the destination section/slide get loaded when you leave the current section, not when you arrive. There's only one exception, which is when you are using non full screen sections and there are multiple sections in the viewport. The ones that are not the active one will be lazyloaded when entering in the viewport.
There's no such thing at the moment. However, we can perhaps add an option in fullpage.js to do so if the developer needs. I'll mark it as a possible enhancement! Thanks for the heads up! 👍 |
@alvarotrigo Yes I think making the lazyload method public would be a good solution. For example, I have no bullets in my slideshow, so users can only go to next/previous slides with arrows. |
Fixed in version 4.0.28! 🥳 |
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
andonSlideLeave
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.
The text was updated successfully, but these errors were encountered: