Skip to content
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

LazyLoad only visible cells #430

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

LazyLoad only visible cells #430

wants to merge 1 commit into from

Conversation

a-v-l
Copy link

@a-v-l a-v-l commented Aug 1, 2016

depending on the cellAlign option.

So, if cellAlign: 'right' is chosen only lazy-load the images left to the index and if cellAlign: 'left' is chosen only load those to the right. For the default situation (cellAlign: 'center') the images to both sides are lazy-loaded. It's a small enhancement but it also only costs a couple bytes.

(Most of the 40 additions and 23 deletions come from running gulp uglify. Not sure if that's how it should be done…)

depending on the cellAlign option
@desandro
Copy link
Member

desandro commented Aug 5, 2016

Thank you for this contribution! Like you said, this is a minor adjustment. It's a nice addition, but I don't know if it's significant enough to merge.

Add a 👍 reaction if you would like to see this PR merged.

@kbav
Copy link

kbav commented Sep 28, 2016

There are a couple scenarios where I have used Flickity as a kind of forward-moving-only, linear slideshow — and an upcoming project that is going to be rather data hungry. Having Flickity lazyload with a simple option rocks — but I could see a "forward only lazyload" being even better in these occasions.

That said, I could see this being a stretch from a code standpoint.

@CaptainCodeman
Copy link

Disappointed this isn't getting more 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants