Title: Enqueueing JS scripts separately vs concatenating?
Last modified: August 30, 2016

---

# Enqueueing JS scripts separately vs concatenating?

 *  [Jason Yingling](https://wordpress.org/support/users/yingling017/)
 * (@yingling017)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/enqueueing-js-scripts-separately-vs-concatenating/)
 * In theme development, what’s the best practice for enqueueing scripts individually
   vs concatenating scripts into one file to avoid multiple HTTP requests? Enqueueing
   the scripts individually does allow for them to be dequeued if necessary, but
   at the cost of larger file size and more HTTP requests. Any thoughts?

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

 *  [catacaustic](https://wordpress.org/support/users/catacaustic/)
 * (@catacaustic)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/enqueueing-js-scripts-separately-vs-concatenating/#post-6684479)
 * If it’s a concern, the best thing to do is suggest that users install a pluign
   like [Autoptimize](https://wordpress.org/plugins/autoptimize/) that will do the
   concatination for the entire system, not just the theme. That way you can enqueue,
   dequeue and more as much as needed, and the concatination and minification will
   still occur.
 *  Thread Starter [Jason Yingling](https://wordpress.org/support/users/yingling017/)
 * (@yingling017)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/enqueueing-js-scripts-separately-vs-concatenating/#post-6684531)
 * Nice, I’ll check out that tool. I have been playing around with using CloudFlare
   for minifying resources among other things, but I’m still hitting a good amount
   of HTTP requests on page speed analysis.

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

The topic ‘Enqueueing JS scripts separately vs concatenating?’ is closed to new 
replies.

## Tags

 * [theme development](https://wordpress.org/support/topic-tag/theme-development/)
 * [wp_enqueue](https://wordpress.org/support/topic-tag/wp_enqueue/)

 * In: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
 * 2 replies
 * 2 participants
 * Last reply from: [Jason Yingling](https://wordpress.org/support/users/yingling017/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/enqueueing-js-scripts-separately-vs-concatenating/#post-6684531)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
