Force jQuery LazyLoad to Appear

Sometimes, you need to manually trigger the lazyload even though you want it to respond to scroll events normally.

Simply trigger the `appear` event to force lazyload to load the image.

This is applicable in my case when for example I am using lazyload on a gallery slider where the user may scroll down to it, or use a button to trigger the new slides to appear.

Example:

$("img.lazy").trigger(‘appear’);

The answer was in the source. Always look in the source.

3 thoughts on “Force jQuery LazyLoad to Appear

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s