• This breaks the rest of my javascript:

    var videoid = url.match(/(?:https?:\/{2})?(?:w{3}\.)?youtu(?:be)?\.(?:com|be)(?:\/watch\?v=|\/)([^\s&]+)/);
    jQuery(this).attr('href','https://www.youtube.com/embed/'+videoid[1]);

    You should check for videoid

    var videoid = url.match(/(?:https?:\/{2})?(?:w{3}\.)?youtu(?:be)?\.(?:com|be)(?:\/watch\?v=|\/)([^\s&]+)/);
    
            if( videoid )
            {
                jQuery(this).attr('href','https://www.youtube.com/embed/'+videoid[1]);
            }

    https://ww.wp.xz.cn/plugins/lightbox/

Viewing 1 replies (of 1 total)
  • Hello.
    Thanks for your feedback. We will consider that issue and soon make update on that.
    We have been trying our best to optimize the plugin

Viewing 1 replies (of 1 total)

The topic ‘Your plugin conflicts with other JS’ is closed to new replies.