Title: wp_enqueue_script called unnecessarily
Last modified: August 22, 2016

---

# wp_enqueue_script called unnecessarily

 *  Resolved [daymobrew](https://wordpress.org/support/users/daymobrew/)
 * (@daymobrew)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/wp_enqueue_script-called-unnecessarily/)
 * In wccs_install() wp_enqueue_script() and wp_enqueue_style() are called. They
   are then called again in the wccs_non_admin_scripts() function.
 * The first calls (in wccs_install) should be removed – they generate errors when
   WP_DEBUG is on.
 * — woocommerce-checkout-manager.orig.php 2015-02-09 11:13:25.000000000 +0000
    
   +++ woocommerce-checkout-manager.php 2015-03-09 22:03:06.752384300 +0000 @@ -
   67,8 +67,6 @@ add_filter( ‘plugin_action_links_’.plugin_basename(__FILE__), ‘
   wccs_admin_plugin_actions’, -10); add_action( ‘admin_init’, ‘wccs_register_setting’);}
   else { – wp_enqueue_script(‘jquery-ui-datepicker’); – wp_enqueue_style( ‘jquery-
   ui-style’, (is_ssl()) ? ‘[https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/smoothness/jquery-ui.css&#8217](https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/smoothness/jquery-ui.css&#8217);:‘
   [http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/smoothness/jquery-ui.css&#8217](http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/smoothness/jquery-ui.css&#8217););
   add_action(‘wp_enqueue_script’, ‘wccs_non_admin_scripts’); }
 * [https://wordpress.org/plugins/woocommerce-checkout-manager/](https://wordpress.org/plugins/woocommerce-checkout-manager/)

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

 *  [emark](https://wordpress.org/support/users/emark/)
 * (@emark)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/wp_enqueue_script-called-unnecessarily/#post-5880679)
 * Hi there,
 * I have found that when leaving out the above code or changing it, some functions
   does not work for some themes
 * Thanks.
    E.
 *  Thread Starter [daymobrew](https://wordpress.org/support/users/daymobrew/)
 * (@daymobrew)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/wp_enqueue_script-called-unnecessarily/#post-5880683)
 * That sounds like an issue with those themes – maybe they are doing something 
   wrong too.
 * Do you know some of the themes that break? I would like to try to debug them 
   too.

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

The topic ‘wp_enqueue_script called unnecessarily’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-checkout-manager/assets/icon-256x256.jpg?rev
   =2911736)
 * [Checkout Field Manager (Checkout Manager) for WooCommerce](https://wordpress.org/plugins/woocommerce-checkout-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-checkout-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-checkout-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-checkout-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-checkout-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-checkout-manager/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [daymobrew](https://wordpress.org/support/users/daymobrew/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/wp_enqueue_script-called-unnecessarily/#post-5880683)
 * Status: resolved