-
-
Save jacopo-nosto/7ff54c1d9c4a59036392e6d690bf9ad1 to your computer and use it in GitHub Desktop.
Check if Slick has been loaded
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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