Problem with function almComplete on slick slider
-
Hi,
I am using slick slider on frontpage to show pictures in posts.
I was install and set ajax load more and do necessary changes.
I use function almComplete, which should be call after each successful ajax load more query:$.fn.almComplete = function (alm) { $('.slider-wrap').each(function () { $('.slider', this).slick({ lazyLoad: 'ondemand', arrows: true, fade: false, infinite: false }); }); };
…on initial load function is called and slick is initialized, but on second call look like function is called before html is rendered, because I am getting error, that my slick is empty and slick sliders for rest of posts is not initialized.
Have you please any idea what can be a problem?
…also I spend few hours on initializing ajax load more plugin – I can not get it work – javascript was not loaded.
Problem was, that if you deregister core jQuery – ajax load more javascript is not called…Thanks for any suggestion with my problem on slick.
Peter
- The topic ‘Problem with function almComplete on slick slider’ is closed to new replies.