I'm trying to fire some code when slick initializes. Apparently in the newest version 1.4 "callback methods have been deprecated and replaced with events."
This doesn't work for me though:
$('.spv-slider').on('init', function(event, slick){
console.log("initialised")
});
what's wrong with it?
slickNext
event on init, but I get the errorCannot read property 'slickNext' of undefined
... That being said, the answer is correct in that the init event must be written before the slick function. – Therm