Skip to content

Commit

Permalink
Feature for event handling when image is lazy loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorKonigsmark authored and simeydotme committed Feb 1, 2016
1 parent cb75829 commit 7abc8d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ init | event, slick | When Slick initializes for the first time callback. Note t
reInit | event, slick | Every time Slick (re-)initializes callback
setPosition | event, slick | Every time Slick recalculates position
swipe | event, slick, direction | Fires after swipe/drag
lazyLoaded | event, slick, image | Fires after image loads lazily


#### Methods
Expand Down
1 change: 1 addition & 0 deletions slick/slick.js
Original file line number Diff line number Diff line change
Expand Up @@ -1461,6 +1461,7 @@
.removeAttr('data-lazy')
.removeClass('slick-loading');
});
_.$slider.trigger('lazyLoaded', [_, image]);
});
};

Expand Down

0 comments on commit 7abc8d9

Please sign in to comment.