Title: [Plugin: TinyMCE Advanced] WordPress&#039; TinyMCE JavaScript Fails JavaScript Minification
Last modified: August 19, 2016

---

# [Plugin: TinyMCE Advanced] WordPress' TinyMCE JavaScript Fails JavaScript Minification

 *  Resolved [shamasis](https://wordpress.org/support/users/shamasis/)
 * (@shamasis)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-tinymce-advanced-wordpress-tinymce-javascript-fails-javascript-minification/)
 * The following JavaScript files are required to be excluded from minification 
   when using WP Minify plugin.
    1. [http://blog.fusioncharts.com/wp-includes/js/tinymce/tiny_mce.js?ver=20081129](http://blog.fusioncharts.com/wp-includes/js/tinymce/tiny_mce.js?ver=20081129)
    2. [http://blog.fusioncharts.com/wp-includes/js/tinymce/langs/wp-langs-en.js?ver=20081129](http://blog.fusioncharts.com/wp-includes/js/tinymce/langs/wp-langs-en.js?ver=20081129)
 * I am unsure whether to report this to WordPress as it is part of core wp-includes
   files. Or whether to report it to you as because the core files are not supposed
   to be part of front-end UI unless your plugin is used.
 * Please suggest.

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

 *  Plugin Author [Andrew Ozz](https://wordpress.org/support/users/azaozz/)
 * (@azaozz)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-tinymce-advanced-wordpress-tinymce-javascript-fails-javascript-minification/#post-1927324)
 * I’m not sure exactly what you’re trying to accomplish but all JS in WordPress
   is already minified. Trying to minify it second time won’t work right.
 *  Thread Starter [shamasis](https://wordpress.org/support/users/shamasis/)
 * (@shamasis)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-tinymce-advanced-wordpress-tinymce-javascript-fails-javascript-minification/#post-1927329)
 * My bad for not being able to convey myself last time.
 * I am using the WP-Minify plugin that attempts to increase oload time by concatenating
   and minifying all JS and CSS files.
 * Ideally this should work fine. A minified JS (or any other language) can be minified
   any number of times unless any of the minified JS itself has a syntax error. 
   Try it out at javascriptcompressor.com
 * Furthermore, with that plugin, the already minified jQuery and other JS files
   work fine. It is only the TinyMCE codes that cause error.
 * A possible reason (other than syntax error on minified code) could be that there
   are code-blocks within that JS that has tightly-coupled modules that use global
   variables.
 *  Plugin Author [Andrew Ozz](https://wordpress.org/support/users/azaozz/)
 * (@azaozz)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-tinymce-advanced-wordpress-tinymce-javascript-fails-javascript-minification/#post-1927345)
 * In principle a minified JS could be minified again and work fine, however different
   minifiers mangle the code differently and you may end up with a larger file. 
   Also big and complex JS files like Prototype.js, jQuery, TinyMCE, etc. may trigger
   errors when minifying (that’s mostly caused by the minifier not handling regexp
   strings properly).
 * In these cases a pre-minified and tested version should be used, that’s why WP
   includes the “official” minified files.
 * Also all JS and CSS in WP is already minified and re-minifying it is just a waste
   of server resources as you might gain a very small size reduction but also you
   may end up with larger files.
 * In my opinion best would be to turn off script minification and use only the 
   concatenation part of that plugin.
 *  Thread Starter [shamasis](https://wordpress.org/support/users/shamasis/)
 * (@shamasis)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-tinymce-advanced-wordpress-tinymce-javascript-fails-javascript-minification/#post-1927347)
 * Thanks for your inputs. 🙂
    Hope this conversation helps everyone using WordPress.

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

The topic ‘[Plugin: TinyMCE Advanced] WordPress' TinyMCE JavaScript Fails JavaScript
Minification’ is closed to new replies.

 * ![](https://ps.w.org/tinymce-advanced/assets/icon-256x256.png?rev=971511)
 * [Advanced Editor Tools](https://wordpress.org/plugins/tinymce-advanced/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tinymce-advanced/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tinymce-advanced/)
 * [Active Topics](https://wordpress.org/support/plugin/tinymce-advanced/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tinymce-advanced/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tinymce-advanced/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [shamasis](https://wordpress.org/support/users/shamasis/)
 * Last activity: [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-tinymce-advanced-wordpress-tinymce-javascript-fails-javascript-minification/#post-1927347)
 * Status: resolved