Title: Problems combining JS script
Last modified: August 22, 2016

---

# Problems combining JS script

 *  [SamAshford](https://wordpress.org/support/users/samashford/)
 * (@samashford)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/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.

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [performace](https://wordpress.org/support/topic-tag/performace/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [SamAshford](https://wordpress.org/support/users/samashford/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/problems-combining-js-script/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
