Skip to content

Instantly share code, notes, and snippets.

@jacopo-nosto
Created Jun 29, 2018
Embed
What would you like to do?
Check if Slick has been loaded
function initMe(){
if(typeof _targetWindow.jQuery.fn.slick !== 'undefined'){
launchCarousel();
}else{
setTimeout(initMe, 300);
}
}
initMe();
_targetWindow.jQuery("#$divId .nosto-carousel").on('init', function(slick){
_targetWindow.jQuery("#$divId").fadeTo("slow",1);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment