Title: Breaks Lightbox Plugin
Last modified: August 24, 2016

---

# Breaks Lightbox Plugin

 *  Resolved [Isabella Chen](https://wordpress.org/support/users/wyafer/)
 * (@wyafer)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/breaks-lightbox-plugin/)
 * Great plugin, simple to use, well coded, regular updates and support…
 * **Unfortunately** it breaks lightbox plugins. Please consider adding support 
   for lightbox plugins, as practically all wordpress websites use them to display
   images.
 * I tried it with “Lightbox Plus Colourbox” and “Simple Lightbox” and it broke 
   both.
 * [https://wordpress.org/plugins/wp-deferred-javascripts/](https://wordpress.org/plugins/wp-deferred-javascripts/)

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Author [Daniel Roch](https://wordpress.org/support/users/confridin/)
 * (@confridin)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/breaks-lightbox-plugin/#post-6069906)
 * Did you try another plugin, for example FancyBox plugins ?
 *  Thread Starter [Isabella Chen](https://wordpress.org/support/users/wyafer/)
 * (@wyafer)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/breaks-lightbox-plugin/#post-6070047)
 * Hi Daniel, it does not work with FancyBox plugins either.
 *  Plugin Author [Daniel Roch](https://wordpress.org/support/users/confridin/)
 * (@confridin)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/breaks-lightbox-plugin/#post-6070048)
 * Did you tried to empty your cache, or to only use 2 plugins : Deferred Javascript
   and a FancyBox one ?
 *  Thread Starter [Isabella Chen](https://wordpress.org/support/users/wyafer/)
 * (@wyafer)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/breaks-lightbox-plugin/#post-6070059)
 * Yes, I emptied the cache, deactivated all plugins excepted Deferred Javascript
   and Fancybox plugin. The Deferred Javascript plugin still breaks the Fancybox
   plugin. :/
 *  Plugin Author [Daniel Roch](https://wordpress.org/support/users/confridin/)
 * (@confridin)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/breaks-lightbox-plugin/#post-6070075)
 * And did you tried with another theme ?
 *  Thread Starter [Isabella Chen](https://wordpress.org/support/users/wyafer/)
 * (@wyafer)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/breaks-lightbox-plugin/#post-6070148)
 * Hi, yes, I have tried it with two standard WP themes, Twenty Eleven and the latest
   one, Twenty Fifteen. I de-activated all plugins except Deferred Javascript, and
   Fancybox, and the Deferred Javascript prevents the Fancybox plugin from working.
   🙂
 *  Plugin Author [Daniel Roch](https://wordpress.org/support/users/confridin/)
 * (@confridin)
 * [11 years ago](https://wordpress.org/support/topic/breaks-lightbox-plugin/#post-6070184)
 * Did you cleared your cache ?
 *  Thread Starter [Isabella Chen](https://wordpress.org/support/users/wyafer/)
 * (@wyafer)
 * [11 years ago](https://wordpress.org/support/topic/breaks-lightbox-plugin/#post-6070190)
 * Yes, I cleared the cache. I deactivated both Fancy Box and Deferred Javascript,
   cleared the cache, activated both, and the Deferred Javascript plugin still prevented
   Fancy Box from working correctly…
 *  [Saliom](https://wordpress.org/support/users/saliom/)
 * (@saliom)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/breaks-lightbox-plugin/#post-6070300)
 * Hello there,
 * With **Lightbox Plus Colorbox**, add that code in your functions.php to exclude
   the script which have a conflict with WP Deferred JavaScripts:
 *     ```
       // Don't defer this script.
       add_filter( 'do_not_defer', 'exlude_lightbox_scripts' );
       function exlude_lightbox_scripts( $do_not_defer ) {
       		$do_not_defer[] = 'jquery-colorbox';
       		return $do_not_defer;
       }
       ```
   
 * You can try to search every script loaded in your plugin by the way of “wp_enqueue_script()”
   to exclude the scripts one by one to find the one that should not be differed.
 * P.S: I found all of that in the readme.txt of the plugin.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Breaks Lightbox Plugin’ is closed to new replies.

 * ![](https://ps.w.org/wp-deferred-javascripts/assets/icon-256x256.png?rev=974705)
 * [WP Deferred JavaScripts](https://wordpress.org/plugins/wp-deferred-javascripts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-deferred-javascripts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-deferred-javascripts/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-deferred-javascripts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-deferred-javascripts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-deferred-javascripts/reviews/)

## Tags

 * [defer javascript](https://wordpress.org/support/topic-tag/defer-javascript/)

 * 9 replies
 * 3 participants
 * Last reply from: [Saliom](https://wordpress.org/support/users/saliom/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/breaks-lightbox-plugin/#post-6070300)
 * Status: resolved