Auto Initialization inconsistent when Cycle2 is loaded asynchronously.
It appears when cycle 2 is loaded asynchronously, i.e. via $.ajax or as a requireJS dependency, auto initialization does not function properly.
Specifically, various API hooks such as bootstrap and initialized are not called. Additionally no sentinel slide is generated.
These issues were resolved my manually initializing after the script is loaded.
Can you post a simplified link that demonstrates the issue? C2 should operate consistently regardless of how it is loaded.
I'm having the same problem using RequireJS.
The script seems to be loaded but neither the html or jquery code seems to be working.
I get the "cycle2 init" on my console, but when i try to do a simple
$('.cycle-slideshow').cycle({ speed: 600, manualSpeed: 100 });
It doesnt do anything.
Any good news on this? I'm using requireJS, something it works, but it often doesn't.
I know it's been a while, lol -- but you have to destroy the cycle before re-initializing.
$('.cycle-slideshow').cycle('destroy'); $('.cycle-slideshow').cycle();