Autoptimize: problems & how to solve them
If you’ve upgraded to 1.7.0 and as from the upgrade there are horrible problems with CSS & JS minification, these could be due to the switch to the newer CSS/ JS compression components.
If that is the case, you can easily switch back to the old components by adding this to your wp-config.php;
The “legacy minifiers” will remain in Autoptimize “for ever” and changes to wp-config.php are not affected by core-, theme- or plugin-upgrades so you should be good to go.
There’s a small known bug in WP Super Cache which causes Autoptimize’s aggregated CSS/JS files to be sent with an cache expiry of 3 seconds. If you’re using WP Super Cache and Autoptimize and you are experiencing this issue, there’s more info in this support thread.
A bug in Autoptimize 1.7.0 (and probably earlier versions as well); CSS with background-images encoded in them, e.g.
the background-image is broken. temporary workaround; remove the quotes, e.g.
A fix for this will be included in 1.7.1 (mid-November). If you don’t want to use the workaround and don’t want to wait for the fix; in autoptimizeStyles.php replace
if(substr($url,0,1)=='/' || preg_match('#^(https?|ftp)://#i',$url))
on line 387 with
if(substr($url,0,1)=='/' || preg_match('#^(https?://|ftp://|data:)#i',$url))
and all should be well.
a test-version of 1.7.1 is out, fixing the last 2 items above. it also includes support for mapped domains. you can download the test-release here; http://downloads.wordpress.org/plugin/autoptimize.zip
- The topic ‘Autoptimize: problems & how to solve them’ is closed to new replies.