Title: jQuery error breaking the main thread
Last modified: February 18, 2019

---

# jQuery error breaking the main thread

 *  Resolved [mlummus](https://wordpress.org/support/users/mlummus/)
 * (@mlummus)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/jquery-error-breaking-the-main-thread/)
 * While debugging why other features on our site were not working I came across
   this error in the console.
 * “jQuery(this).hideShow” is not a function
 * The line in question is from line 74 in this file
    /plugins/photo-gallery/js/
   bwg_frontend.js?ver=1.5.14
 * I have seen caching and minification being referenced as a possible cause for
   the issue, however we are not doing that on this particular site.
 * The main issue here is not even that the photo gallery isn’t working but it is
   creating errors that are uncaught and bubbling to the main JS thread, thus preventing
   other scripts on the page to work. There is no additional error handling or IIFE
   wrappers to prevent the bubbling.
 * For now I have just manually updated that script in the plugin and added a try{}
   catch(e){} block around the line that is creating the error.
 * That is at least preventing the plugin from breaking other scripts.

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

 *  [Suzie](https://wordpress.org/support/users/suziekh/)
 * (@suziekh)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/jquery-error-breaking-the-main-thread/#post-11221327)
 * Hi,
 * Most likely you have this issue because of a conflict. It seems like jQuery cannot
   connect successfully.
 * Could you please disable all the plugins and activate them one by one to check
   which one arises the conflict?
 * If this does not help, please change the theme you have installed.
 * Let us know what result you get.
 *  Thread Starter [mlummus](https://wordpress.org/support/users/mlummus/)
 * (@mlummus)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/jquery-error-breaking-the-main-thread/#post-11224241)
 * [@suziekh](https://wordpress.org/support/users/suziekh/) Thanks for the reply.
 * That seems very likely and we can certainly try to narrow it down to find the
   conflict.
 * I think the problem here still is that if the plugin can’t access what it needs
   it should catch that error and log it but not let it bubble up.
 * In other words, totally understandable that it can run into a jQuery conflict
   but not okay that it breaks otherwise working scripts.
 * I think a big reason for that is that jQuery conflicts can be common since so
   many libraries use it.
 * I will reply later if I can narrow down what else may be conflicting.
    -  This reply was modified 7 years, 4 months ago by [mlummus](https://wordpress.org/support/users/mlummus/).
 *  Plugin Support [Kima Baghdasaryan](https://wordpress.org/support/users/kimabaghdasaryan/)
 * (@kimabaghdasaryan)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/jquery-error-breaking-the-main-thread/#post-11225500)
 * Hi,
 * Have you deactivated other Plugins and changed the Theme?
 * Thank you!
 * Have a nice day!

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

The topic ‘jQuery error breaking the main thread’ is closed to new replies.

 * ![](https://ps.w.org/photo-gallery/assets/icon-256x256.png?rev=2068745)
 * [Photo Gallery by 10Web - Mobile-Friendly Image Gallery](https://wordpress.org/plugins/photo-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/photo-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/photo-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/photo-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/photo-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/photo-gallery/reviews/)

## Tags

 * [jquery error](https://wordpress.org/support/topic-tag/jquery-error/)

 * 3 replies
 * 3 participants
 * Last reply from: [Kima Baghdasaryan](https://wordpress.org/support/users/kimabaghdasaryan/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/jquery-error-breaking-the-main-thread/#post-11225500)
 * Status: resolved