How do you disable, or conditionally load this plugin so it isn't run when a user browses with an iPhone using the wptouch theme / plugin?
How do you disable, or conditionally load this plugin so it isn't run when a user browses with an iPhone using the wptouch theme / plugin?
Actually, it works with the wpTouch plugin. Minification & cachine plugins that minify may mess it up - that as my problem.
Here is what I added to wp-minify. Replace yoursite.com with the path to the relevant places.
Javascript files to exclude from minify (line delimited)
http://www.yoursite.com/wp-includes/js/wp-ajax-response.js
http://www.yoursite.com/wp-content/plugins/wp-ajax-edit-comments/js/comment-editor.js
http://www.yoursite.com/wp-content/plugins/wp-ajax-edit-comments/js/comment-editor.min.js
http://www.yoursite.com/wp-content/plugins/wp-ajax-edit-comments/js/jquery.atd.textarea.js
http://www.yoursite.com/wp-content/plugins/wp-ajax-edit-comments/js/csshttprequest.js
http://www.yoursite.com/wp-content/plugins/wp-ajax-edit-comments/js/tabber.js
http://www.yoursite.com/wp-content/plugins/wp-ajax-edit-comments/js/frontend.js
http://www.yoursite.com/wp-ajax-edit-comments/js/wp-ajax-edit-comments.min.js
CSS files to exclude from minify (line delimited)
http://www.yoursite.com/wp-content/themes/hybrid-news/front-page.css
http://www.yoursite.com/wp-content/plugins/wp-ajax-edit-comments/css/themes/aesthetica-small/comment-editor.css
http://www.yoursite.com/wp-content/plugins/wp-ajax-edit-comments/css/atd/atd.css
http://www.yoursite.com/wp-content/plugins/wp-ajax-edit-comments/css/tabber.css
I guess a handy alternative for W3 Total Cache would be to simply disable minify content for specific user agents (like all the iPhone-related, google them up).
You have to reject user agents for all caches in all of the caches (except database caching). Since there are lots of ways you can use your site, user agents are not rejected in all cache types. For example and origin pull mirror can (and should) be used with your mobile site, so there's not need to reject mobile user agents there.
This topic has been closed to new replies.