Support » Plugin: Autoptimize » Autoptimize: problems & how to solve them

  • Plugin Author Frank Goossens

    (@futtta)


    If you are running into problems with Autoptimize, I’d recommend you go through the FAQ and specifically the “troubleshooting”-part.

    Do not hesitate to share your experiences here if you successfully worked around issues with a theme or plugin!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Frank Goossens

    (@futtta)

    A tip for users updating from 1.6.x to 1.7.0; if your theme (or a plugin) uses jQuery and you want to be sure everything continues to work, I’d recommend to activate the “force javascript in head” option (as older versions of Internet Explorer have issues with deferred jQuery).

    Plugin Author Frank Goossens

    (@futtta)

    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;

    define("AUTOPTIMIZE_LEGACY_MINIFIERS","true");

    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.

    Plugin Author Frank Goossens

    (@futtta)

    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.

    Plugin Author Frank Goossens

    (@futtta)

    A bug in Autoptimize 1.7.0 (and probably earlier versions as well); CSS with background-images encoded in them, e.g.

    background: url("data:image/png;base64,iVBORw0...");

    the background-image is broken. temporary workaround; remove the quotes, e.g.

    background: url(data:image/png;base64,iVBORw0...)

    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.

    Plugin Author Frank Goossens

    (@futtta)

    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

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Autoptimize: problems & how to solve them’ is closed to new replies.