Title: Remove unused CSS and JavaScript and Reduce execution time
Last modified: September 13, 2020

---

# Remove unused CSS and JavaScript and Reduce execution time

 *  Resolved [Keith a.k.a. K j A M](https://wordpress.org/support/users/kjam/)
 * (@kjam)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/remove-unused-css-and-javascript-and-reduce-execution-time/)
 * I use WP Fastest Cache in conjunction with Autoptimize and have been playing 
   around with the settings for the past couple of days. I’ve pretty much got this
   thing down to the wire of optimization between the two plugins figuring what 
   works and what is incompatible.
 * There are a few issues I cannot resolve. The first two are “remove unused CSS
   and JavaScript.” Specifically:
 * [https://partyfavorz.com/wp-content/cache/autoptimize/css/autoptimize_db35d87e03a6a9386aa873700d3224f4.css](https://partyfavorz.com/wp-content/cache/autoptimize/css/autoptimize_db35d87e03a6a9386aa873700d3224f4.css)
 * [https://partyfavorz.com/wp-content/cache/autoptimize/js/autoptimize_2254e28d68d89c647a30efecc225a101.js](https://partyfavorz.com/wp-content/cache/autoptimize/js/autoptimize_2254e28d68d89c647a30efecc225a101.js)
 * Then reduce JavaScript execution time:
 * [https://partyfavorz.com/wp-includes/js/jquery/jquery.js](https://partyfavorz.com/wp-includes/js/jquery/jquery.js)
 * [https://partyfavorz.com/wp-content/cache/autoptimize/js/autoptimize_2254e28d68d89c647a30efecc225a101.js](https://partyfavorz.com/wp-content/cache/autoptimize/js/autoptimize_2254e28d68d89c647a30efecc225a101.js)
 * [https://partyfavorz.com/wp-content/themes/customizr-pro/assets/front/js/tc-scripts.min.js?2.3.2](https://partyfavorz.com/wp-content/themes/customizr-pro/assets/front/js/tc-scripts.min.js?2.3.2)
 * [https://partyfavorz.com/wp-content/cache/autoptimize/css/autoptimize_db35d87e03a6a9386aa873700d3224f4.css](https://partyfavorz.com/wp-content/cache/autoptimize/css/autoptimize_db35d87e03a6a9386aa873700d3224f4.css)
 * As you can see the majority of these issues are coming from Autoptimize and I’m
   at a loss as how to resolve them to get me premanently into the green for Google
   Page Speed.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fremove-unused-css-and-javascript-and-reduce-execution-time%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/remove-unused-css-and-javascript-and-reduce-execution-time/#post-13399609)
 * The unused CSS/JS is being reported as being Autoptimize’s, but AO merely aggregates
   all the CSS/ JS provided by your theme & plugins, so if you (really) want to 
   tackle “remove unused CSS/JS” then you should look into your theme & plugins (
   you might be able to get some improvement using e.g. “plugin organizer” to only
   allow plugins to work on specific pages). Moreover the unused CSS/ JS will likely
   be different for different pages (or parts of your site), so that would lead 
   to different autoptimized CSS/JS-files being loaded on different pages.
 * Same for “execution time”; if you have a lot of JS, AO will combine it into as
   little number of files possible, but the JS in the end will still need to be 
   parsed and executed, which AO cannot help with. The only option is to use less
   JS-heavy themes & plugins.
 * hope this clarifies,
    frank
 *  Thread Starter [Keith a.k.a. K j A M](https://wordpress.org/support/users/kjam/)
 * (@kjam)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/remove-unused-css-and-javascript-and-reduce-execution-time/#post-13400193)
 * That’s fine. After configuring and figuring out what needed to be disabled in
   WP Fastest Cache the major issues disappeared. These are minor.
 * Right now, I’m resizing, optimizing and converting images to webp. Once done,
   I’ll clean out unneeded files to get everything on the server lean.
 * I already score like 96 in GT Metrix but Google Page speed often asks for the
   impossible. Nevertheless, adding your plugin has had a profound effect on my 
   Google results.
 * Thanks!
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/remove-unused-css-and-javascript-and-reduce-execution-time/#post-13400829)
 * you’re welcome KjAM, feel free to [leave a review of the plugin and support here](https://wordpress.org/support/plugin/autoptimize/reviews/#new-post)!
   🙂
 * frank

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

The topic ‘Remove unused CSS and JavaScript and Reduce execution time’ is closed
to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/remove-unused-css-and-javascript-and-reduce-execution-time/#post-13400829)
 * Status: resolved