Title: Suggestion: Enqueue extra &#8220;plugin&#8221; libraries individually
Last modified: February 2, 2018

---

# Suggestion: Enqueue extra “plugin” libraries individually

 *  Resolved [David Cavins](https://wordpress.org/support/users/dcavins/)
 * (@dcavins)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/suggestion-enqueue-extra-plugin-libraries-individually/)
 * Hi Virtue authors-
 * Thanks for your work on this plugin.
 * I’d like to offer a suggestion on the way you are enqueueing JS files. There’s
   an all-in-one “plugins” file that you are enqueueing in `scripts.php`, line 30:
   `
   wp_enqueue_script('virtue_plugins', get_template_directory_uri() . '/assets/js/
   min/plugins-min.js', array( 'jquery', 'masonry' ), '311', true);`
 * Because that file contains Bootstrap 3.0.3 (in its entirety?) it’s causing conflicts
   with other plugins that also rely on Bootstrap’s JS functionality. However, because
   it has been manually bundled with other libraries, dequeueing the “plugins” script
   is going to probably break other things.
 * My request is that instead of manually bundling those libraries, just enqueue
   them individually, (maybe use the Bootstrap CDN for that one), so that developers
   can target the script we’d like to remove or modify. Sure, it’ll be a couple 
   more HTTP requests, but, if enqueued individually, then optimization-loving devs
   can use whatever tools they want to bundle and optimize HTTP requests.
 * Thanks!
 * -David

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

 *  [Ben Ritner – Kadence WP](https://wordpress.org/support/users/britner/)
 * (@britner)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/suggestion-enqueue-extra-plugin-libraries-individually/#post-9940042)
 * Hey,
    we’ve already started this with our other themes in terms of pulling bootstrap
   into it’s own file. It will be part of a coming update.
 * (can’t load from CDN since that is not allowed for .org themes)
 * Ben
 *  Thread Starter [David Cavins](https://wordpress.org/support/users/dcavins/)
 * (@dcavins)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/suggestion-enqueue-extra-plugin-libraries-individually/#post-9940129)
 * Great! Thanks for your response.
 * -David

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

The topic ‘Suggestion: Enqueue extra “plugin” libraries individually’ is closed 
to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/virtue/3.4.15/screenshot.png)
 * Virtue
 * [Support Threads](https://wordpress.org/support/theme/virtue/)
 * [Active Topics](https://wordpress.org/support/theme/virtue/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/virtue/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/virtue/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [David Cavins](https://wordpress.org/support/users/dcavins/)
 * Last activity: [8 years, 4 months ago](https://wordpress.org/support/topic/suggestion-enqueue-extra-plugin-libraries-individually/#post-9940129)
 * Status: resolved