Title: Limit plugin includes (css/javascript) to single page?
Last modified: August 19, 2016

---

# Limit plugin includes (css/javascript) to single page?

 *  [briang](https://wordpress.org/support/users/briang/)
 * (@briang)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/limit-plugin-includes-cssjavascript-to-single-page/)
 * Is there a way to limit plugin includes (js/css) to a single page?
 * Most of my plugins are used on a single page (ie. Contact Form), yet these plugins
   are including it’s javascript and css throughout my entire site. Not only is 
   this causing excess load times, in some cases it causes conflict with other plugin
   scripts.
 * Any ideas?

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

 *  [oweninnamibia](https://wordpress.org/support/users/oweninnamibia/)
 * (@oweninnamibia)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/limit-plugin-includes-cssjavascript-to-single-page/#post-1312567)
 * I have this problem too…. anyway around having the JS and CSS for a particular
   plugin only load on the page it’s being used?
 *  [smordue](https://wordpress.org/support/users/smordue/)
 * (@smordue)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/limit-plugin-includes-cssjavascript-to-single-page/#post-1312613)
 * I too would like this answer, it would be nice if the page editor had a list 
   of all plugins that you could check or uncheck by page to use or not.
 *  [e-sushi](https://wordpress.org/support/users/e-sushi/)
 * (@e-sushi)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/limit-plugin-includes-cssjavascript-to-single-page/#post-1312614)
 * Actually that’s rather simple.
    1. Create a “header-2.php” or something like that including your extra css and 
       js.
    2. Next, create a page template that includes the alternate header file INSTEAD
       of the regular “header.php”.
    3. Finally, use that page template to do your contact form stuff and co.
 * Done – mission accomplished!
 *  [e-sushi](https://wordpress.org/support/users/e-sushi/)
 * (@e-sushi)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/limit-plugin-includes-cssjavascript-to-single-page/#post-1312615)
 * An alternative would be use 2 header files. The original “header.php” that is
   included in every theme file… and in a page template, an additional include of
   an “additional-header-file.php” (name it yourself) that contains only the JS 
   and CSS you need/want to add to your header.
 * (Just Saying)

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

The topic ‘Limit plugin includes (css/javascript) to single page?’ is closed to 
new replies.

## Tags

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

 * 4 replies
 * 4 participants
 * Last reply from: [e-sushi](https://wordpress.org/support/users/e-sushi/)
 * Last activity: [15 years, 5 months ago](https://wordpress.org/support/topic/limit-plugin-includes-cssjavascript-to-single-page/#post-1312615)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
