Loading ‘chosen.js’ on whole Dashboard area creates problem with other plugins.
-
Hi @iqpascal,
Thank you for the useful plugin. It’s a nice plugin and it has a large number of users.
We, the ShapedPlugin team have been facing an issue with the ‘iQ?Block Country’ plugin. We have seen that this plugin has been developed using ‘chosen.js’. It loads ‘chosen.js’ in the whole Dashboard area, thus it creates confliction with other plugins which use ‘chosen.js’. The ‘iQ Block Country’ should not affect other plugin’s functionality. If you load this javascript file only on its pages, the confliction will get resolved.
We cordially?request the author of this plugin to check this issue. ??
Our suggestion →
iq-block-country.php → line 292$screen = get_current_screen(); if ( $screen->id == 'settings_page_iq-block-country/libs/blockcountry-settings' ) { // Scripts wp_enqueue_script( 'chosen', CHOSENJS, array( 'jquery' ), false, true ); wp_enqueue_script( 'custom', CHOSENCUSTOM, array( 'jquery', 'chosen' ), false, true ); }
We are looking forward to hearing from you. Hope to get a nice solution. ??
Best Regards,
ShapedPlugin
- The topic ‘Loading ‘chosen.js’ on whole Dashboard area creates problem with other plugins.’ is closed to new replies.