As far as I'm aware, it should be just fine, so long as you provide the non-minified version in the Theme package.<div><br></div><div>Chip<br><br><div class="gmail_quote">On Thu, Oct 4, 2012 at 1:36 PM, Bruce Wampler <span dir="ltr"><<a href="mailto:weavertheme@gmail.com" target="_blank">weavertheme@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Just a question about providing Minified CSS files - and specifically the main style.css file (with the standard header still included, of course!)<br>
<br>For my theme, if I could provide a minified style.css file, it would result in about 15K total size saving. In the context of an image, that isn't much, but it is also not a trivial amount. (And I really not looking for a debate on why I my theme has a 50K style file - it isn't that hard to do with lots of comments and responsive rules.)<br>
<br>As per common practice, one would provide two versions of each minified file: style.css, and style.dev.css. In my tests, the minified file works exactly the same, and doesn't seem to give the Themes admin page any issues since the standard header is there.<br>
<br>For my theme in particular, I see two advantages to a minified style.css:<br><br>1. It is smaller. (Some of us still have 2G mobile phone service, believe it or not, and even 15K can help on a slow phone connection.)<br>
<br>2. It would discourage users from editing style.css, which is generally a terrible idea - but especially for my theme. The designer either needs to use built-in options from the theme to add custom CSS, or build a child theme.<br>
<br>Reasons not to allow:<br>1. Human unreadable - theme reviewer would have to trust the minified version is the same as the .dev full version. The .dev version or a browser developer tool can be used to examine the rules.<br>
2. Most themes probably don't have 50K style files, so the savings would not usually be all that significant.<br><br>I don't remember seeing this discussed before, and wondered if it is a permissible thing to do. I know themes and plugins commonly provide dev and minified version of .js files, seems .css isn't that much different.<span class="HOEnZb"><font color="#888888"><br>
<br>Bruce Wampler<br>Weaver Theme<br>
</font></span><br>_______________________________________________<br>
theme-reviewers mailing list<br>
<a href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a><br>
<a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
<br></blockquote></div><br></div>