WordPress.org

Ready to get started?Download WordPress

Forums

Autoptimize
Autoptimize: problems & how to solve them (6 posts)

  1. futtta
    Member
    Plugin Author

    Posted 8 months ago #

    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!

  2. futtta
    Member
    Plugin Author

    Posted 8 months ago #

    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).

  3. futtta
    Member
    Plugin Author

    Posted 8 months ago #

    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.

  4. futtta
    Member
    Plugin Author

    Posted 8 months ago #

    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.

  5. futtta
    Member
    Plugin Author

    Posted 8 months ago #

    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.

  6. futtta
    Member
    Plugin Author

    Posted 8 months ago #

    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

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.