Title: Minify javascript
Last modified: August 30, 2016

---

# Minify javascript

 *  [megatemas](https://wordpress.org/support/users/megatemas/)
 * (@megatemas)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/minify-javascript-1/)
 * Hello,
 * I am using W3 Total Cache and the minify option for the plugin, there is no problem,
   it works fine, but once you accept cookies no longer works in Google Chrome Console
   indicates the following:
 * “Uncaught TypeError: this.removeCookieNotice is not a function”
 * [https://wordpress.org/plugins/cookie-notice/](https://wordpress.org/plugins/cookie-notice/)

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

 *  Thread Starter [megatemas](https://wordpress.org/support/users/megatemas/)
 * (@megatemas)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/minify-javascript-1/#post-6340464)
 * Any ideas?. Thanks
 *  Plugin Author [dFactory](https://wordpress.org/support/users/dfactory/)
 * (@dfactory)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/minify-javascript-1/#post-6340473)
 * Before we release a fix try changing line 37 in front.js from this:
 * this.removeCookieNotice();
 * to this:
 * $( this ).removeCookieNotice();
 *  Thread Starter [megatemas](https://wordpress.org/support/users/megatemas/)
 * (@megatemas)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/minify-javascript-1/#post-6340541)
 * Thanks.
 * It works perfect.
 *  [Lori](https://wordpress.org/support/users/delphine/)
 * (@delphine)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/minify-javascript-1/#post-6340564)
 * Hi Megatemas, would you mind sharing how you got this plugin to work with W3TC?
   I have it working fine on one site that does not use any caching plugins, but
   on the site where I have W3TC installed it only works if I disable the plugin.
   If you’ve got it working, I’m sure I’m just missing a setting.
 * Thanks in advance,
    Lori

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

The topic ‘Minify javascript’ is closed to new replies.

 * ![](https://ps.w.org/cookie-notice/assets/icon-256x256.png?rev=3549327)
 * [Compliance by Hu-manity.co](https://wordpress.org/plugins/cookie-notice/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cookie-notice/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cookie-notice/)
 * [Active Topics](https://wordpress.org/support/plugin/cookie-notice/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cookie-notice/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cookie-notice/reviews/)

## Tags

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

 * 4 replies
 * 3 participants
 * Last reply from: [Lori](https://wordpress.org/support/users/delphine/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/minify-javascript-1/#post-6340564)
 * Status: not resolved