With Autoptimize, try disabling the Aggregate (combine) JavaScript feature.
I think this combining of JS files into a single JS file is messing up the order of execution of JS files required by WordPress – ie. some JS files are dependant on others being executed first…
So try this out and see if it helps.
It *might* be sufficient to simply add plugins/slide-anything/ to the comma-separated JS optimization exclusion list. If not look at the browser console JS errors as those give a clue about what is going wrong.
frank (ao dev)
Ok, that’s worth a try.
So long as the Slide Anything JavaScript is executed after jQuery has loaded it should be fine.
by default jQuery is excluded from optimization and the aggregated JS is loaded (and executed) later 🙂
I try per suggestion to add plugins/slide-anything/ to the comma-separated JS optimization exclusion list and it is working for PC/desktop but for mobile is not working.
So in my case it is working on mobile only if JS and CSS are disabled.
It is not JS a problem CSS has a issue as well.
and if you exclude plugins/slide-anything/ both from JS and CSS optimization (and maybe also disable the “aggregate inline” options for both CSS & JS?
Well I have a progress, I think.
For JS: owlcarousel.js, plugins/slide-anything/
For CSS: /wp-content/plugins/slide-anything/owl-carousel/owl.carousel.css, /wp-content/plugins/slide-anything/owl, plugins/slide-anything/, /owl-carousel/animate.min.css
are excluded.
I will keep this thread open for a few days and make few more tests. For now everything looks good.
Thank you all for your help.
Updates will follow up.
@optimizingmatters your last update seems to be working.
Ok good, this thread will be a good source of info for anybody else experiencing this issue.
So if you experience issues with with Slide Anything and Autoptimize plugins installed, the solutions summarized is – within Autooptimize:
1) Add plugins/slide-anything/ to the comma-separated JS optimization exclusion list
2) Add plugins/slide-anything/ to the comma-separated CSS optimization exclusion list
3) You may also be required to disable the “aggregate inline” options for both CSS & JS
This is tested and it is working.
Closing the thread.
Thank you all for your help and support.