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

implement callback function feature #407

Open
wants to merge 1 commit into
base: 2.x
Choose a base branch
from
Open

implement callback function feature #407

wants to merge 1 commit into from

Conversation

tjnet
Copy link

@tjnet tjnet commented Jan 22, 2018

What's this PR do?

add callback function.

When the image is loaded, the function defined as 'onLoadCallback' is called.

lazyload(null, {
    onLoadCallback: function() {
        console.log('callback function is called!');
    }
});

Related Issues

#389

@tjnet
Copy link
Author

tjnet commented Jan 22, 2018

I'm new to this. Is this correct? Please review in your free time. 😄

@Oxicode
Copy link

Oxicode commented Aug 7, 2018

+1

@q2apro
Copy link

q2apro commented Mar 21, 2020

Seems to be here: https://github.com/tuupola/lazyload/pull/429/commits (not added to the core yet)

File: https://github.com/tuupola/lazyload/blob/2a4fbfc0b702057338724f8ed2cd09c7db17f403/lazyload.js

Further, see here: https://stackoverflow.com/q/11398005/1066234


And with version 1.x: https://github.com//issues/246 - File: https://github.com/tuupola/lazyload/blob/1.x/jquery.lazyload.js

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.

3 participants