For me chrisJ’s “Write Post” is also slow. It’s just the number of things that WP needs to download into that thing that makes it slow. Scripaculous JS library and whatnot.
Thread Starter
zxb2
(@zxb2)
Well, I fixed the problem. It loads instant for me now.
Here’s what I did:
By default WP generates a cache of the JavaScript here:
/wp-content/uploads/js_cache/tinymce_*.js
I downloaded that, renamed it to tinymce.js, then uploaded it to the /wp-includes/js/tinymce/ folder.
Finally, I opened up wp-includes/script-loader.php and changed line 40 from:
$this->add( ‘tiny_mce’, ‘/wp-includes/js/tinymce/tiny_mce_config.php’, array(‘editor_functions’), $mce_version );
to:
$this->add( ‘tiny_mce’, ‘/wp-includes/js/tinymce/tinymce.js’, array(‘editor_functions’), $mce_version );
Instant loading now in the write / edit post section. It seems that tiny_mce_config.php is not properly cached by the browser… so every time I went to write or edit a post it was basically re-downloading all of the Tiny MCE files.
If the file in the cache directory is a .js (/wp-content/uploads/js_cache/tinymce_*.js), that means you probably have compression enabled on the server. Check php.ini for zlib.output_compression. This is incompatible with the method used to compress TinyMCE.
If this is off, TinyMCE plus all plugins will be compressed to about 70KB instead of 230KB, will have .gz extension and will load faster.
Also the cache file is replaced every time the configuration or the version of TinyMCE changes which won’t happen if you load it directly.
Thread Starter
zxb2
(@zxb2)
azaozz: Thanks. That explains it then, I do have zlib.output_compression enabled.
I tried both what azaozz and zxb2 said, but neither worked. I have the same problem that.
I installed another blog on the same server I used, and post new works just fine, but the blog I originally started with doesn’t.