Title: &#8220;Remove unused Javascript&#8221;
Last modified: June 17, 2020

---

# “Remove unused Javascript”

 *  Resolved [davidssmith](https://wordpress.org/support/users/davidssmith/)
 * (@davidssmith)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/remove-unused-javascript-2/)
 * I am running the Google Speed test and have managed to shave off a lot of loading
   time, but I am still struggling with one area that bothers me, that I am unable
   to find a resolution for.
 * Test Result: [https://developers.google.com/speed/pagespeed/insights/?url=https%3A%2F%2Fbitcoincasinolord.com%2F&tab=mobile](https://developers.google.com/speed/pagespeed/insights/?url=https%3A%2F%2Fbitcoincasinolord.com%2F&tab=mobile)
 * Mainly this one here I would love to find a way to resolve the autoptimize file
   that is generated and causing slow loading times and recommendation from Google.
 * The site is [https://bitcoincasinolord.com](https://bitcoincasinolord.com) and
   the Javascript file that Google is pointing to is this one here: [https://bitcoincasinolord.com/wp-content/cache/autoptimize/autoptimize_0061eadfed2cf958800b34e3465f8173.php](https://bitcoincasinolord.com/wp-content/cache/autoptimize/autoptimize_0061eadfed2cf958800b34e3465f8173.php)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fremove-unused-javascript-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/remove-unused-javascript-2/#post-12997130)
 * 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.
 * hope this clarifies,
    frank

Viewing 1 replies (of 1 total)

The topic ‘“Remove unused Javascript”’ 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [5 years, 12 months ago](https://wordpress.org/support/topic/remove-unused-javascript-2/#post-12997130)
 * Status: resolved