Title: Plugin not working
Last modified: August 30, 2016

---

# Plugin not working

 *  Resolved [Bari007](https://wordpress.org/support/users/bari007/)
 * (@bari007)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/plugin-not-working-296/)
 * Hi.
    I am having problem with this plugin, which is not working on my webpage
   [http://www.relaxpointhyncice.cz/](http://www.relaxpointhyncice.cz/). I tried
   change setting of the plugin, checked out template files for the header and footer
   files and everything seems ok, but the plugin is not working. It has started 
   probably after some upgrade (plugin or WP), but I don’t know when. What can I
   do? How to fix it?
 * Thank you
 * [https://wordpress.org/plugins/easy-fancybox/](https://wordpress.org/plugins/easy-fancybox/)

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

 *  [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/plugin-not-working-296/#post-6213444)
 * The Autoptimize plugin seems to mess with the whole script order, smushing jquery
   into one file with some other random scripts and loading it in the footer AFTER
   all other script files that depend on jQuery have loaded. The result: 14 blocking
   script errors “Uncaught ReferenceError: jQuery is not defined” reported.
 * There are probably a lot of other functions broken (besides FancyBox) on your
   site but a failing lightbox script is maybe to most noticable…
 * Start with disabling the Autoptimize plugin to see what happens.
 *  [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/plugin-not-working-296/#post-6213447)
 * hold your horses friends, there’s other things you can do besides disabling AO(
   of which I am the developer);
    - disable just JS optimization
    - enable JS optimization, but with option “force JS in head”
    - enable JS optimization, leave JS in footer, but exclude specific scripts from
      being autoptimized
 * there’s a lot more info [in AO’s faq](https://wordpress.org/plugins/autoptimize/faq/),
   in case you’re interested.
 * have fun,
    frank
 *  Thread Starter [Bari007](https://wordpress.org/support/users/bari007/)
 * (@bari007)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/plugin-not-working-296/#post-6213457)
 * Thank you Frank! When I checked “Force JavaScript in <head>”, FancyBox works 
   again.
 *  [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/plugin-not-working-296/#post-6213458)
 * Good to hear it works now!
 * I’m not sure if moving all scripts that were once in the footer to the head is
   an improvement in terms of site load speed (Google Pagespeed test will start 
   complaining more about ‘above the fold’ javascript) but as long as it works 😉
 *  Thread Starter [Bari007](https://wordpress.org/support/users/bari007/)
 * (@bari007)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/plugin-not-working-296/#post-6213459)
 * Hmm, I am not sure. So you guess that disabling JS optimization will be better?
 *  [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/plugin-not-working-296/#post-6213469)
 * Maybe leave optimize on but exclude some scripts? If you exclude the main jQuery
   library, I suppose it will be put back into the header. That should at least 
   fix all the “jQuery is not defined” errors…
 * As Frank Goossens suggested, on [https://wordpress.org/plugins/autoptimize/faq/](https://wordpress.org/plugins/autoptimize/faq/)
   you can read some tips. For example under “Configuring & Troubleshooting Autoptimize”
   it sais: “If your theme uses jQuery, you can try either forcing all in head or
   excluding jquery(-min).js (and jQuery-plugins if needed).”
 * You can compare different scenarios by testing with [https://developers.google.com/speed/pagespeed/insights/](https://developers.google.com/speed/pagespeed/insights/)

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

The topic ‘Plugin not working’ is closed to new replies.

 * ![](https://ps.w.org/easy-fancybox/assets/icon-256x256.png?rev=3188201)
 * [Firelight Lightbox](https://wordpress.org/plugins/easy-fancybox/)
 * [Support Threads](https://wordpress.org/support/plugin/easy-fancybox/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-fancybox/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-fancybox/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-fancybox/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/plugin-not-working-296/#post-6213469)
 * Status: resolved