Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › ajaxsearch.pro.js collision with inclusion of jquery.ui › Reply To: ajaxsearch.pro.js collision with inclusion of jquery.ui
February 9, 2015 at 7:53 pm
#3819
I was able to successfull de-register the conflicting scripts and dequeue them, causing the errors to go away:
wp_dequeue_script('wpdreams-aspjquery');
wp_dequeue_script('wpdreams-ajaxsearchpro');
wp_deregister_script('wpdreams-aspjquery');
wp_deregister_script('wpdreams-ajaxsearchpro');
wp_deregister_script( 'jquery' );
. . .
This is not ideal as it introduces a dependency on my plugin to your plugin. I am still curious as to why the scripts aren’t compartmentalized. Looking at the high compatibility, minified code, it looks like it shouldn’t case issues as it is, in fact, namespaced.