Title: Unused JavaScript Warning
Last modified: June 20, 2020

---

# Unused JavaScript Warning

 *  Resolved [michaelmartin73](https://wordpress.org/support/users/michaelmartin73/)
 * (@michaelmartin73)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/unused-javascript-warning/)
 * Hi Daan,
 * For some reason Google Web Dev keeps flagging analytics.js in the CAOS folder
   as “unused” and suggests I remove:
 * [https://www.dropbox.com/s/3mmdihfgfxxta7r/caos-unused-js.jpg?dl=0](https://www.dropbox.com/s/3mmdihfgfxxta7r/caos-unused-js.jpg?dl=0)
 * Is there something I should do that I haven’t done to avoid this happening?
 * Thank you for your help.
 * Michael.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Funused-javascript-warning%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * (@daanvandenbergh)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/unused-javascript-warning/#post-13013536)
 * Hi Michael,
 * That’s correct. Unfortunately.
 * Analytics.js is a library, and contains all sorts of code (such as Display Features,
   etc.) which you don’t always use.
 * Google loves to contradict itself. 🙂
 * I wrote a blog about it recently, hope that’ll provide some clarity. You can 
   read it [here](https://daan.dev/kb/google-pagespeed-insights-update/).
 *  Thread Starter [michaelmartin73](https://wordpress.org/support/users/michaelmartin73/)
 * (@michaelmartin73)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/unused-javascript-warning/#post-13013538)
 * Ah OK, thank you Daan 🙂
 * Bloody Google….

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

The topic ‘Unused JavaScript Warning’ 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [michaelmartin73](https://wordpress.org/support/users/michaelmartin73/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/unused-javascript-warning/#post-13013538)
 * Status: resolved