Skip to content

implement callback function feature#407

Open
tjnet wants to merge 1 commit into
tuupola:2.xfrom
tjnet:issue_389_callback_function
Open

implement callback function feature#407
tjnet wants to merge 1 commit into
tuupola:2.xfrom
tjnet:issue_389_callback_function

Conversation

@tjnet

@tjnet tjnet commented Jan 22, 2018

Copy link
Copy Markdown

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

tjnet commented Jan 22, 2018

Copy link
Copy Markdown
Author

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

@Oxicode

Oxicode commented Aug 7, 2018

Copy link
Copy Markdown

+1

@q2apro

q2apro commented Mar 21, 2020

Copy link
Copy Markdown

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