Replies: 1
Hello,
I love Autoptimize. I brought almost all my pages to PSI 100/100.
A small problem remains. There had been reports, that sometimes Autoptimize and WP Slimstat will not work together. I think, I found some hints about that.
I use Slimstat together with Autoptimize and WP Fastest Cache.
– WPFC is only used for Deflation and the final caching of the rendered HTML files. All HTML, CSS and JS Options are switched off.
– For Autoptimize, I have enabled the options “HTML Optimize”, “JS Optimize” together with “Combine Inline JS”, and “CSS Optimize” together with “Combine Inline CSS” and “Insert CSS Code inline”.
– I have excluded “wp-slimstat.js” and “SlimstatParams” from JS optimiziation.
When I clear the caches and browse my site, all cached files include the Slimstat code. But if I use the cache preload option of WPFC or wait long enough, that some bots have come along, the Slimstat code is missing from the cached files. It looks like, there is a difference between a human user and a bot regarding generating the combined JS files. My first thought was, that if you use the DNT header of Slimstat, Slimstat will not emit the JS code, but if I switch DNT off, the result is the same.
Any hints?
Best regards
Oliver