Problems combining JS script
-
I have been trying to improve the performance of my website. I have combined 17x JavaScripts without breaking the site.
The is just one script I cannot combine with the rest…
wp_enqueue_script( ‘woocommerce’, ‘/wp-content/plugins/woocommerce/assets/js/frontend/woocommerce.min.js’ );I commented out this enqueue and copied the contents into my combined script and the add to cart buttons on my site breaks.
The strange thing is if I change it to something like wp_enqueue_script( ‘woocommerce’, ‘/this file doesn’t exist.js’ ); my site still works perfectly.
Its like the site doesn’t even need this script it just relies on the ‘woocommerce’ been queued.
Can anybody please assist
The topic ‘Problems combining JS script’ is closed to new replies.