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

lazy_class config added #2

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

lazy_class config added #2

wants to merge 7 commits into from

Conversation

keithbooher
Copy link

Okay I finally got this working.
I could add another config option to prevent the class from being added in the first place, and then if it is, there is a default class that can be altered with this first config option. What do you think?

@keithbooher keithbooher requested a review from deodad November 18, 2019 23:27
@deodad
Copy link

deodad commented Nov 18, 2019

It'd make sense to have the default be null, that way it wouldn't change functionality for existing lazyload users

@deodad
Copy link

deodad commented Nov 18, 2019

I'd also open a clean commit with a better name and explaining the rational before submitting as a PR to lazyload:

Add config option for adding a class to lazy images

We wanted to be able to target images using a selector that are marked with lazy. This commit introduce a configuration option called "lazy_css_class" that if set will be added to all image with lazy: true. It defaults to null so existing functionality won't change.

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

Successfully merging this pull request may close these issues.

2 participants