Support » Plugin: Autoptimize » Autoptimize With W3 Total Cache

  • Resolved gooma2


    I checked through the forum to make sure it hadn’t been asked before, but I wanted to see how Autoptimize would work with W3 Total Cache.

    As most know, W3TC can be very very moody, especially with minify, so I wanted to see if these two would be able to work together well, especially to handle those minify options without being so complicated?


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


    I haven’t tested with W3TC, as that comes with minify-options of its own, but I would expect that, if all minify inside W3TC is turned off, Autoptimize should be able to take that part over. Give it a shot and keep us posted on your findings 🙂

    I just did and man does it load very quickly, but without out ads. I know this is the fun JS part and I’ve tried ticking both the Force JS in Had and try-catch wrapping, but nothing has changed yet.

    It’s just when you untick JS that the site goes back to normal. I know there’s a way to make this work without having to go through that W3 Total Cache Minify nightmare.

    so I ticked off all of these:

    Look for scripts only in <head>? Disabled by default. If the cache gets big, you might want to enable this.

    Force JavaScript in <head>? Disabled by default. For performance reasons JavaScript is best put at the end of the HTML, but in some circumstances this breaks things. You can in that case check this option to add JavaScript to the <head> section.

    Add try-catch wrapping? Disabled by default. If your scripts break because of an script error, you might want to try this.

    And the ads come back perfectly. The only issue is my homepage is broken slightly. I’m not sure if that would be a CSS style issue or not.

    Plugin Author Frank Goossens


    Well, if the homepage remains broken if you disable javascript optimization altogether, then it’s a CSS-issue, otherwise it’s js-related.

    That’s interesting. When I did untick the Optimize JS Code, the site looked normal again.

    I kept the Optimize CSS code ticked too.

    I noticed in forums you had mentioned your development version (1.6.6) of this plugin and I just uploaded it. I’m not seeing anything different though.

    I’m just determined to get this working tonight. Our ad code is what keeps slowing our site down so I’m trying to figure out how to work with it. Without the ads it loads in 1.4 seconds, but with it, it shoots up to 8 – 9 seconds but they pay the server and our employees.

    I was able to locate and figure out that it was the flexslider and tabs that are getting broken, but when I put those js names into the ‘Exclude scripts’ section, it seems to be ignoring them.

    I did both ways putting the .js with them and without to see if that made a difference.

    Plugin Author Frank Goossens


    the reason might be a dependancy, like jquery. in that case you’ll have to exlcude that as well.

    I’ll try that next today. Thanks!

    Hey gooma2, Did that work?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Autoptimize With W3 Total Cache’ is closed to new replies.