Thread Starter
Tai
(@hkozon)
i think condition similar happens with wpmultisite. hope the problem will be fixed soon. Plugin work very well with my default domain 🙂
that’s a known problem Tai, the WPML guys & me are going to look into that actually, indeed hope this can be fixed somehow.
kind regards,
frank
Thread Starter
Tai
(@hkozon)
Thank you Frank, Hopefully there will be some way to fix this problem, your plugin help my site greatly improve the speed of the connection.
Best Regards,
tai
not a lot of progress from WPML’s side I’m afraid, so I created a filter to provide AO with an array of domains to consider for aggregation on the development version, cfr. https://github.com/futtta/autoptimize/commit/2f42f3238cd15b4258c4992481245fc357607c45
if you want you can download the zip-file (which has a lot of other improvements as well) and then call the filter like this (from your child theme’s functions.php, a small plugin of your own of using the code snippets plugin);
add_filter('autoptimize_filter_cssjs_multidomain','tai_multidomain',10,0);
function tai_multidomain() {
return array('site.be','site.nl','site.co.uk','site.fr');
}
frank
I have been in touch with one of WPML’s developers about his and have added some logic in the development-version of AO which should automatically allow it to aggregate CSS/JS from all domains that are part of the WPML-installation.
would be great if you could test & confirm if this works or not.
frank
Thread Starter
Tai
(@hkozon)
Hello frank. Sorry for not responding you soon. I’ve tested your lastest edition and it’ve worked good. I am following it. I will tell you if it has any problem.
Best Regards,
tai