Repository › Forums › Support › WooCommerce Extended Coupon Features PRO › Why is wjecf-free-products.js needed on every page load? › Reply To: Why is wjecf-free-products.js needed on every page load?
July 26, 2017 at 1:14 am
#1730
Jonathan Moore
Participant
done as:
if ( (!is_cart()) && ( !is_checkout()) ){
wp_dequeue_style('wjecf-style');
wp_dequeue_script('wjecf-free-products');
}
though it would be more efficient to change the code to not enqueue them where not needed…