Title: Only load CSS/JS when necessary
Last modified: August 20, 2016

---

# Only load CSS/JS when necessary

 *  Resolved [staze](https://wordpress.org/support/users/staze/)
 * (@staze)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/only-load-cssjs-when-necessary/)
 * WP-Resume inserts it’s CSS and JS links on all pages, whether the resume include
   is called or not.
 * This causes extra client connections, and influences page speed/yslow rankings.
   Would be nice if they were only added when [wp_resume] was actually included 
   on the page/post/etc.

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

 *  Plugin Author [Ben Balter](https://wordpress.org/support/users/benbalter/)
 * (@benbalter)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/only-load-cssjs-when-necessary/#post-2267595)
 * Thanks for the suggestion. The latest version should tackle this.
    – Ben
 *  Thread Starter [staze](https://wordpress.org/support/users/staze/)
 * (@staze)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/only-load-cssjs-when-necessary/#post-2267596)
 * Seems to work. Thanks Ben!

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

The topic ‘Only load CSS/JS when necessary’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-resume_9c7f79.svg)
 * [WP Resume](https://wordpress.org/plugins/wp-resume/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-resume/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-resume/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-resume/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-resume/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-resume/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [staze](https://wordpress.org/support/users/staze/)
 * Last activity: [14 years, 8 months ago](https://wordpress.org/support/topic/only-load-cssjs-when-necessary/#post-2267596)
 * Status: resolved