How to control lazyload event on javacript to fix bug on Owlcarousel

Modified on Thu, 19 Apr, 2018 at 4:52 PM

- Customize the lazysize.js file by adding the code e.target.addEventListener('lazyloaded', function(e){});

- Remember to remove 'owl-carousel' default class of Owlcarousle plugin because it prevents Lazysize plugin to change the class name on the loaded elements.

- Finally, on main javascript code add another event handler for 'lazyloaded' event to an image element to handle stuff after image loaded.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article