Title: JavaScript minification breaking some functionality
Last modified: March 6, 2022

---

# JavaScript minification breaking some functionality

 *  Resolved [mikehermary](https://wordpress.org/support/users/mikehermary/)
 * (@mikehermary)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/javascript-minification-breaking-some-functionality/)
 * My client’s site is using GeoDirectory and the business hours dropdown is having
   conflicts with the WPO JavaScript minifcation settings. When I have it enabled,
   the dropdown opens, then immediately closes. I have tried excluding the /wp-content/
   plugins/geodirectory/assets/js/jquery.ui.timepicker.min.js from the minifcation,
   but it did not work. I also tried using the debug settings to add exclusions,
   but those failed as well.
 * Chromium is displaying this error in the console: `Error message: Cannot read
   properties of undefined (reading 'timepicker')`.
 * All plugins are up to date on the website, as is WordPress.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fjavascript-minification-breaking-some-functionality%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Harshad](https://wordpress.org/support/users/bornforphp/)
 * (@bornforphp)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/javascript-minification-breaking-some-functionality/#post-15432032)
 * [@mikehermary](https://wordpress.org/support/users/mikehermary/) Could you please
   try to check the option “Defer all Javascript” from WP-Optimize > Minify > Javascript
   and check if it helps to fix the issue?
 *  Thread Starter [mikehermary](https://wordpress.org/support/users/mikehermary/)
 * (@mikehermary)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/javascript-minification-breaking-some-functionality/#post-15438682)
 * Hello,
 * I have enabled that option, but it has not solved the issue. There are no JS 
   errors in the console after setting all scripts to being deferred.
 * I have also tested with the ‘jQuery’ defer setting on/off, but it had no effect.
 * Cheers,
 *  [Harshad](https://wordpress.org/support/users/bornforphp/)
 * (@bornforphp)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/javascript-minification-breaking-some-functionality/#post-15440241)
 * [@mikehermary](https://wordpress.org/support/users/mikehermary/) Could you please
   try to turn off the option “Enable merging of Javascript files” from WP-Optimize
   > Minify > Javascript and check if it helps to fix the issue?
 *  Thread Starter [mikehermary](https://wordpress.org/support/users/mikehermary/)
 * (@mikehermary)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/javascript-minification-breaking-some-functionality/#post-15442067)
 * Hello,
 * We did not have this setting enabled.
 * There seems to be something larger happening with the plugin and other plugins
   as nothing I have tried or suggested by support has resolved this issue. It only
   started in the last couple of weeks.
 * Cheers,
 *  [Harshad](https://wordpress.org/support/users/bornforphp/)
 * (@bornforphp)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/javascript-minification-breaking-some-functionality/#post-15444157)
 * [@mikehermary](https://wordpress.org/support/users/mikehermary/) Have you performed
   a conflict test yet?
 * Try deactivating all plugins except for WP-Optimize and see if it is resolved.
 * If so, reactivate each plugin one at a time until you find the culprit. You can
   check for the issue between activating each plugin, so you can see which one 
   is causing problems.
 * Please let us know your findings.
 *  Thread Starter [mikehermary](https://wordpress.org/support/users/mikehermary/)
 * (@mikehermary)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/javascript-minification-breaking-some-functionality/#post-15466351)
 * Hello,
 * I have completed this testing, but none the plugins seemed to have conflicted
   with WP Optimize.
 * Cheers,

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

The topic ‘JavaScript minification breaking some functionality’ is closed to new
replies.

 * ![](https://ps.w.org/wp-optimize/assets/icon-256x256.png?rev=1552899)
 * [WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance](https://wordpress.org/plugins/wp-optimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-optimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-optimize/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-optimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-optimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-optimize/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [mikehermary](https://wordpress.org/support/users/mikehermary/)
 * Last activity: [4 years, 5 months ago](https://wordpress.org/support/topic/javascript-minification-breaking-some-functionality/#post-15466351)
 * Status: resolved