• Resolved catmaniax

    (@catmaniax)


    Hello!
    I’ve been trying to make this plugin work, read the FAQ, searched around but everytime I try new options it’s the same result.

    My CSS breaks and the theme is broken.

    I’m new to WordPress so I know that most chances are, it is me who is doing something wrong and not the plugin.
    I would be grateful for some insight on this because I feel it will make a great difference to my site.

    Thanks!

    https://www.ads-software.com/plugins/autoptimize/

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

    (@futtta)

    My CSS breaks and the theme is broken.

    So JS & HTML optimization works?

    Can you be a bit more specific, with a screenshot with and without CSS optimization maybe?

    frank

    Thread Starter catmaniax

    (@catmaniax)

    Hello, only HTML seems to be working without causing the site to break.
    I sent you an email through the contact form of your blog.
    Please get back to me when you have the time.

    Thank you!

    Plugin Author Frank Goossens

    (@futtta)

    the fix implemented, after mailing back & fro; exclude jquery.js and excluding a CSS-file (in the root dir, so likely to be a PHP-generated file).

    frank

    Thread Starter catmaniax

    (@catmaniax)

    Thanks a lot to Frank, he really is helping me out through this.
    I really appreciate his effort and autoptimize is up to the job is promised to do ??

    Plugin Author Frank Goossens

    (@futtta)

    that looks like what one would put in a 5-star review, really ??

    frank

    Thread Starter catmaniax

    (@catmaniax)

    I did, thanks again ??

    Plugin Author Frank Goossens

    (@futtta)

    I did, thanks again ??

    no, thank you! ??

    Hi

    I have a similar problem.
    Acutally, Autoptimize does nothing at all.
    I run the latest wordpress 4.5.2 and also autoptimize from the latest git.
    Parallel I run wp-supercache.
    I also switched of supercache but still, autoptimize does nothing. I also made sure, that ther e is a starting <html> tag. There is. (one line earlier though, there is the <!Doctype tag)

    I see in the wp-content/cache/autoptimize that the files are generated. Its just not modifying the html.

    How can I make autoptimize to work or do anything at all?

    Plugin Author Frank Goossens

    (@futtta)

    probably a plugin or theme conflict @cescher; try to systematically toggle plugins off (and briefly switch themes) to see what the conflict might be. once found I’ll be happy to take a look at the guilty code ??

    frank

    hi frank

    So, I found the guilty plugin. it’s WP Media folder (Version 3.5.5 | By Joomunited). An essential plugin which helps me to organize the pictures.
    How can I find out which part of this plugin does incompatible stuff?

    one more thing. Now since autoptimize is finally doing what it is supposed to do, it works great with the css.
    With js how ever I get “jquery not defined”. how can I load jqery earlier?

    thanks
    ced

    Plugin Author Frank Goossens

    (@futtta)

    How can I find out which part of this plugin does incompatible stuff?

    well, as it’s a premium plugin I think you could file a support ticket, no? ??

    With js how ever I get “jquery not defined”. how can I load jqery earlier?

    simply add wp-includes/js/jquery/jquery.js to the comma-seperated list of JS optimization exclusions.

    frank

    Plugin Author Frank Goossens

    (@futtta)

    Look what I just saw passing by @cescher;

    WP Media folder 3.5.6 is out fixing Autoptimize conflict #wordpress #media joomunited.com/wordpress-prod… https://t.co/sisCBYDf2r

    ??

    great stuff! works like a charm. will push this to the staging server and play around with it now

    Just two more questions:

    • Is it possible to change the cache direcotry by configuration? i found the constant AUTOPTIMIZE_CACHE_DIR without a “definded” check before so my alternations will be overwritten
    • Does anybody have experience to run autoptimize behind a loadbalancer and 2+ servers? I’m asking, since the page might be generated by one server and the css/js request might go to another server where the file might not be available. I also use Cloudfront with wp-supercache. So couldfront will pull from the origin severs but the behaviour should be the same.

    Thanks!

    Plugin Author Frank Goossens

    (@futtta)

    Re.: cache directory, cfr. FAQ;

    Can I change the directory & filename of cached autoptimize files?

    Yes, if you want to serve files from e.g. /wp-content/resources/aggregated_12345.css instead of the default /wp-content/cache/autoptimize/autoptimize_12345.css, then add this to wp-config.php:

    define('AUTOPTIMIZE_CACHE_CHILD_DIR','/resources/');
    define('AUTOPTIMIZE_CACHEFILE_PREFIX','aggregated_');

    Re.: loadbalanncer; that might indeed be a problem, but there are alwasy solutions as well. some kind of network share of /wp-content/cache (or even /wp-content/, so you ensure your uploads are available on both) would be the first thing to come to mind?

    frank

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Damn, can't get it to work!’ is closed to new replies.