well there always is an autoptimized JS file, so it is aggregating JS, just not all of it on all pages. so pretty hard to say, so let me ask you some questions;
1. what do you have in your JS optimization exclusion list
2. (do you have a non-production site where you) can disable/ enable each plugin to see if one of those if semi-breaking AO?
3. did you try with the “AUTOPTIMIZE_INIT_EARLIER” constant as described in the FAQ?
frank
Thanks for the quick answer!
1. In my JS optimization exclusion list: s_sid,smowtion_size,sc_project,WAU_,wau_add,comment-form-quicktags,edToolbar,ch_client,seal.js,jquery.themepunch.tools.min.js, jquery.themepunch.revolution.min.js,jquery.themepunch.revolution.min.js,api-maps.yandex.ru/services/constructor/1.0/js/?sid=1__OyppTpHH3KVtQcOYs7mQpACdqe5p2&,
2. Unfortunately, there is no such site
3. I added this code in wp-config.php. I must save the changes and clear the cache in the settings of plugin?
ok; regarding “AUTOPTIMIZE_INIT_EARLIER”; you would have to clear W3TC’s page cache, AO’s is optional
frank
I clear cache and disable page cache. But problem don’t solved.
Then I’m afraid this is most likely to be a plugin conflict. If you want to proceed, you’ll have to toggle your plugins off/on (clearing page cache every time) to see if there’s one which causes this erratic behavior.
frank
What do you think how to solve this problem?
well, deactivate other plugins one after the other and see if AO succeeds in aggregating all (or at least more) javascript. once we know what plugin is causing this, I can test with that (if I can download it somewhere, that is).
frank
hmmm … next up; your theme. Can you (ever so briefly) switch to a default theme (201*) and see if that changes anything?
(can’t seem to access those images on yadi.sk, maybe upload to to imgur.com or a public dropbox-folder instead?)
frank
or better still; upon every change test the page on webpagetest.org and share the url to the result. the information in there is much more useful to see what exactly is being optimized.
ideally focus on the contactpage and do a webpagetest.org test for;
1. page with your plugins & theme active
2. page with your theme active but not plugins except AO
3. page with your plugins & 201* theme active
4. page without plugins except AO & using 201* theme
If I can compare webpagetest.org results, we might learn something after all 😉
I changed theme. On all pages all right exclude page of contacts (mobile version)
All screenshots here
but can you share the webpagetest.org results? 🙂
ok, I don’t have the time to have a detailed look now, but hope to be able to do so tomorrow Argument. I’ll keep you posted!
frank
Thank you, Frank! I will be wait 🙂