Break Simple-Lightbox plugin
-
Hello,
Very great plugin but i have a problem.
The Simple-LightBox plugin (https://www.ads-software.com/plugins/simple-lightbox/) doesn’t work with WP Deferred Javascript.I tried to use this code (do_not_defer) but it doesn’t work yet :
add_filter( 'do_not_defer', 'exlude_lightbox_scripts' ); function exlude_lightbox_scripts( $do_not_defer ) { $do_not_defer[] = plugins_url().'/simple-lightbox/client/js/prod/lib.core.js'; $do_not_defer[] = plugins_url().'/simple-lightbox/client/js/prod/lib.view.js'; $do_not_defer[] = plugins_url().'/simple-lightbox/themes/baseline/js/prod/client.js'; $do_not_defer[] = plugins_url().'/simple-lightbox/themes/default/js/prod/client.js'; $do_not_defer[] = plugins_url().'/simple-lightbox/template-tags/item/js/prod/tag.item.js'; $do_not_defer[] = plugins_url().'/simple-lightbox/template-tags/ui/js/prod/tag.ui.js'; $do_not_defer[] = plugins_url().'/simple-lightbox/content-handlers/image/js/prod/handler.image.js'; }
The SimpleLightBox plugin doesn use the wp_enqueue_script() function, so i dont know how to use the “do_not_defer” in this case.
Could you help me ?
Thank you
https://www.ads-software.com/plugins/wp-deferred-javascripts/
- The topic ‘Break Simple-Lightbox plugin’ is closed to new replies.