Title: Feature Request &#8211; JavaScript Minification
Last modified: May 2, 2020

---

# Feature Request – JavaScript Minification

 *  Resolved [plittlefield](https://wordpress.org/support/users/plittlefield/)
 * (@plittlefield)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/feature-request-javascript-minification/)
 * Great plugin, thanks!
 * Is there any way to have a tick box for allowing the JS code to be minified?

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

 *  Plugin Author [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * (@daanvandenbergh)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/feature-request-javascript-minification/#post-12769043)
 * You mean the analytics.js provided by Google? This is (aside from the comments
   in the code) already minified.
 * If you mean that the JS file should be combined with other JS files, this is 
   tricky, but I’m testing ways to make this possible.
 * I managed to get this to work with Autoptimize, but again, it’s tricky and very
   prone to fatal errors.
 *  Thread Starter [plittlefield](https://wordpress.org/support/users/plittlefield/)
 * (@plittlefield)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/feature-request-javascript-minification/#post-12772268)
 * Hello Daan,
 * Thanks for replying so quickly.
 * Yes, I mean the inline JS that is shown near the bottom of the source (I choose
   to put it in the footer).
 * I too have had success with Autoptimize, it grabs all the other bits of inline
   code on the page and puts it in to a perfect scipt defer just before /html but
   it does not take your caos inline code.
 * It’s not a big thing, I’m getting 99% on YSlow (gosh that took a lot!) but that
   dream of 100% would be nice to realise 🙂
 * Other than that, your plugin is great and would like to buy you a beer?
 * Cheers.
 * Take care,
 * Paully
 *  Plugin Author [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * (@daanvandenbergh)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/feature-request-javascript-minification/#post-12772281)
 * Hi Paully,
 * I managed to make it work with autoptimize, checkout the [source of my own site](https://daan.dev/).
   Try doing a search (CTRL/CMD + F) for ‘analytics.js’. You’ll see that the inline
   code is gone.
 * Try these settings in [Autoptimize](https://imgur.com/a/NFL0vD2) and in [CAOS](https://imgur.com/a/dqpiGZb).
 * Thank you for your offer! I used to accept donations, but since I recently moved
   to offering premium services and add-ons for CAOS, I decided it wouldn’t be polite
   to accept donations anymore :).
 * One you might be interested in, though, is CAOS Super Stealth Upgrade. It enhances
   the Stealth Mode to bypass **all** Ad Blockers. If you’re interested, you can
   read more about it [here](https://woosh.dev/wordpress-plugins/caos-super-stealth-upgrade/).
 *  Thread Starter [plittlefield](https://wordpress.org/support/users/plittlefield/)
 * (@plittlefield)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/feature-request-javascript-minification/#post-12772524)
 * Hi Daan,
 * Boom… ‘Snippet Type: Asynchronous’ did the trick!
 * view-source:[https://www.normawinstone.com/](https://www.normawinstone.com/)
 * You star… I shall go and buy the CAOS Super Stealth Upgrade as soon as possible
   🙂
 * Thank you so much.
 * Regards,
 * Paully
 *  Plugin Author [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * (@daanvandenbergh)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/feature-request-javascript-minification/#post-12772542)
 * *blushes* 😉
 * Thanks!
 * I should write an article about this. And I will soon. Thanks for your efforts
   to resolve this issue with me!

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

The topic ‘Feature Request – JavaScript Minification’ is closed to new replies.

 * ![](https://ps.w.org/host-analyticsjs-local/assets/icon-256x256.png?rev=3307068)
 * [CAOS | Host Google Analytics Locally](https://wordpress.org/plugins/host-analyticsjs-local/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/host-analyticsjs-local/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/host-analyticsjs-local/)
 * [Active Topics](https://wordpress.org/support/plugin/host-analyticsjs-local/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/host-analyticsjs-local/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/host-analyticsjs-local/reviews/)

## Tags

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

 * 5 replies
 * 2 participants
 * Last reply from: [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/feature-request-javascript-minification/#post-12772542)
 * Status: resolved