HI Sebastian, I’m not personally familiar with Autoptimize but as with any tool that optimizes your site by combining JavaScript and CSS files, I would suggest turning it off for mobile browsers unless it’s been optimized to work with your mobile theme. Thanks, c.
Thx BraveNewCode. But how can I turn it off for mobile browsers?
Hi Sebastian, most caching plugins allow you to exclude user agents, and WPtouch has a feature to attempt to disable specific plugins during loading. Thanks, c.
https://support.wptouch.com/support/solutions/articles/5000523464-core-settings-compatibility
To disable spec. plugins during loading I must activate Wptouch pro, or? This was on myy agenda anyway..
hi guys;
I’m autoptimize’s developer, some randomish remarks;
1. performance optimization (page caching & CSS/JS optimization) are even more important on mobile then on desktop (stating the obvious here)
2. it should be perfectly possible to configure AO in such a way that WPTouch works (cfr. the troubleshooting part in AO’s FAQ)
3. AO has an API which allows someone with basic PHP/ WP experience to stop JS, CSS or ALL optimization of any request, based on (part of) the URL, the HTML or functions (e.g. is_cart() in WooCommerce). Based on this it should be trivial to disable either CSS, JS or CSS optimization when WPTouch is active.
That being said, I’d be happy to work with the WPTouch-team to identify the optimal configuration to optimize WPToush-sites 🙂
kind regards,
frank
Hi Frank Goossen, thx for your answer!
3. AO has an API which allows someone with basic PHP/ WP experience to stop JS, CSS or ALL optimization of any request, based on (part of) the URL, the HTML or functions (e.g. is_cart() in WooCommerce). Based on this it should be trivial to disable either CSS, JS or CSS optimization when WPTouch is active.
How can I do that?
Thx, Sebastian
well, there’s example code of how to disable all optimization based on url (path) in autoptimize_helper.php_example for starters 🙂
frank
Thx. sorry to ask u again.
I just know WP-basics. Where do I have to put the code?
Sebastian
best & easiest would be to add it using the code snippets plugin.
frank