Title: Calling plugins separately
Last modified: August 19, 2016

---

# Calling plugins separately

 *  [gsjosh](https://wordpress.org/support/users/gsjosh/)
 * (@gsjosh)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/calling-plugins-separately/)
 * I’m using quite a lot of plugins on my wordpress site and I love them all. One
   of them is WPG2 which embeds my gallery into a wordpress page. Unfortunately,
   all those plugins make everything quite slow, especially the gallery page.
 * I was wondering if there’s a way to only call the WPG2 plugin and not all the
   other ones since they’re not used on the gallery page. This will stop all sorts
   of stylesheets and javascripts to be loaded.
 * It doesn’t only go for the WPG2 plugin the main question is: Is there a way to
   have control on which plugin loads on a certain theme (using php templates)?

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

 *  Thread Starter [gsjosh](https://wordpress.org/support/users/gsjosh/)
 * (@gsjosh)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/calling-plugins-separately/#post-1023833)
 * Can anybody give me a clue?
 *  [s_ha_dum](https://wordpress.org/support/users/apljdi/)
 * (@apljdi)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/calling-plugins-separately/#post-1023842)
 * I don’t think you can selectively load plugins. You can edit the plugin such 
   that it doesn’t load things like javascript or css except on certain pages.
 *  Thread Starter [gsjosh](https://wordpress.org/support/users/gsjosh/)
 * (@gsjosh)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/calling-plugins-separately/#post-1023892)
 * And how would I do that? I have looked for something like that but I guess my
   talent of searching isn’t good. Can you point me in the right direction?
 *  [s_ha_dum](https://wordpress.org/support/users/apljdi/)
 * (@apljdi)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/calling-plugins-separately/#post-1023894)
 * Probably start [here](http://www.lost-in-code.com/platforms/wordpress/wordpress-using-javascript-libraries-with-your-plugin-or-theme/).
   Then browse Google’s returns for [‘wordpress javascript’](http://www.google.com/search?hl=en&q=wordpress+javascript&btnG=Google+Search&aq=f&oq=).
   You are going to have to figure out how the plugin loads its scripts and css 
   and then filter it. The simplest, not necessarily the best, way is to wrap the
   code in a `is_page('whatever') {...}` conditional.
 *  Thread Starter [gsjosh](https://wordpress.org/support/users/gsjosh/)
 * (@gsjosh)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/calling-plugins-separately/#post-1023923)
 * Thank you very much for the help.

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

The topic ‘Calling plugins separately’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 2 participants
 * Last reply from: [gsjosh](https://wordpress.org/support/users/gsjosh/)
 * Last activity: [17 years, 2 months ago](https://wordpress.org/support/topic/calling-plugins-separately/#post-1023923)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
