<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Thanks for the tips! I knew about the enqueue part already, but adding the compressor info was not something that I really considered. Will definitely do this for release. Can you suggest a good compressor to use that is in compliance with theme review standards?<div><br></div><div>Thanks!</div><div>-Mike<br><div><br><div><div>On Jul 4, 2011, at 8:28 PM, Dion Hulse (dd32) wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Just remember to use best practices in doing so.</div><div>&nbsp;* If you minify the file rather than just strippings comments, don't munge it. &nbsp;To keep people happy, mentioning in the dev version what compressor and settings were used would probably be appreciated.<br>

</div><div>&nbsp;* Default to the minified/commentless file, but enqueue the dev version when the SCRIPT_DEBUG constant is set, this is what core uses to use the non-minified files, makes it easier to debug that way IMO.</div>

<div>(Those apply to plugins as equally as to Themes)</div><div><br></div><div class="gmail_quote">On 5 July 2011 13:24, Chip Bennett <span dir="ltr">&lt;<a href="mailto:chip@chipbennett.net">chip@chipbennett.net</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">All else being equal and being implemented properly, I don't see any<br>
reason why that should cause a problem.<br>
<br>
Given that you're not actually required to provide a version of the JS<br>
file with inline documentation (i.e. the condensed version would be<br>
perfectly valid on its own), providing a second, documented version is<br>
an example of going above and beyond. IMHO anything that adds<br>
documentation to a Theme should be encouraged.<br>
<br>
Chip<br>
<div><div class="h5"><br>
On 7/4/11, Michael Fields &lt;<a href="mailto:michael@mfields.org">michael@mfields.org</a>&gt; wrote:<br>
&gt; I've been working on integrating some javascript functionality into my next<br>
&gt; public theme. Thing is, I've grown quite accustomed to documenting my code<br>
&gt; over the past year and this applies to javascript as well. The file in<br>
&gt; question is almost 200 lines long and I only see it grown. Fully documented,<br>
&gt; it could easily become 3-400 lines. I'm projecting about 50% of the code<br>
&gt; will be documentation when all is said and done.<br>
&gt;<br>
&gt; I would like to include it into the theme much the same way that WordPress<br>
&gt; included js. Having a "dev" version and a "live" version. The live version<br>
&gt; would contain the same functional code minus excess whitespace and comments.<br>
&gt; I would not use any compression or package application to obfuscate the<br>
&gt; code.<br>
&gt;<br>
&gt; Just wondering if this is something that would pass theme review. I know<br>
&gt; questions like this have been asked before, but I honestly can not remember<br>
&gt; the outcome.<br>
&gt;<br>
&gt; Here's the script:<br>
&gt; <a href="https://github.com/mfields/nighthawk/blob/master/dropdowns.js" target="_blank">https://github.com/mfields/nighthawk/blob/master/dropdowns.js</a><br>
&gt;<br>
&gt; Best wishes,<br>
&gt; -Mike<br>
&gt; _______________________________________________<br>
&gt; theme-reviewers mailing list<br>
&gt; <a href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a><br>
&gt; <a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
&gt;<br>
<br>
</div></div><font color="#888888">--<br>
Sent from my mobile device<br>
</font><div><div class="h5">_______________________________________________<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>
</div></div></blockquote></div><br>
_______________________________________________<br>theme-reviewers mailing list<br><a href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a><br>http://lists.wordpress.org/mailman/listinfo/theme-reviewers<br></blockquote></div><br></div></div></body></html>