• Hi everyone,

    I don’t use the slideshow feature of the plugin and my site is working perfectly without ngg.slideshow.min.js and jquery.cycle.all.min.js
    But when I remove this code

    // required for the slideshow
            if ( NGGALLERY_IREXIST == true && $this->options['enableIR'] == '1' && nggGallery::detect_mobile_phone() === false )
                wp_enqueue_script('swfobject', NGGALLERY_URLPATH .'admin/js/swfobject.js', FALSE, '2.2');
            else {
                wp_register_script('jquery-cycle', NGGALLERY_URLPATH .'js/jquery.cycle.all.min.js', array('jquery'), '2.88');
                wp_enqueue_script('ngg-slideshow', NGGALLERY_URLPATH .'js/ngg.slideshow.min.js', array('jquery-cycle'), '1.05'); 
    
            }

    from the nggallery.php, the Jquery isn’t loading anymore.

    What does

    wp_register_script('jquery-cycle', NGGALLERY_URLPATH .'js/jquery.cycle.all.min.js', array('jquery'), '2.88');

    do to not make my jquery loading?

    Thanks,
    Ben

Viewing 1 replies (of 1 total)
  • Variable 3 = array(‘jquery’) loads jquery before the specified scrip is loaded, so unless jquery is being called by some other scirpt than you’ll be missing jquery all together.

    There may be other factors involved, but hope that helps.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: NextGEN Gallery] Jquery doesn't load after removing jquery.cycle.all.min.js and ngg.sl’ is closed to new replies.