• Resolved Frank6tg

    (@frank6tg)


    This plugin loads files on pages that aren’t using the shortcode.
    The page linked above has no lightbox on it but 4 files get loaded anyway.

    Pretty photo JS and CSS
    Video lightbox JS and CSS
    See https://gtmetrix.com/reports/zollingermediation.com/rLOwLGyU/

    NOTE: until this is fixed I’m using Asset Clean Up to remove these files but ideally your plugin should only enqueue these files on pages the shortcode is used, then your plugin would be truly awesome.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Support mbrsolution

    (@mbrsolution)

    Hi, our plugin currently enqueues the following files.

    
    wp_enqueue_script('jquery.prettyphoto');
    wp_enqueue_script('video-lightbox');

    If you want to dequeue the above files, you can use the following code.

    wp_dequeue_script( 'video-lightbox' );

    Thank you.

Viewing 1 replies (of 1 total)
  • The topic ‘Video Lightbox Plugin should not load if no shortcode is used on a page’ is closed to new replies.