Thanks, Otto<br><br><br><div class="gmail_quote">On Tue, Apr 5, 2011 at 4:51 AM, Otto <span dir="ltr">&lt;<a href="mailto:otto@ottodestruct.com">otto@ottodestruct.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
2. For any normal kind of theme, you probably don&#39;t have that much<br>
dynamic CSS that you actually need to create. You probably only have a<br>
few settings, for things like colors, fonts, etc. No more than 1K of<br>
code, probably. The dynamic CSS should go *inline* in the page itself.<br>
Minified, if you prefer.<br>
<br>
Look at how the custom_background and custom_header stuff in core<br>
works. It&#39;s creating CSS and then inserting it right into the page<br>
using the wp_head hook. That&#39;s the right way to do dynamic CSS. Not<br>
only does it avoid the whole writing files problem, but it also avoids<br>
an extra HTTP round trip to the server to get your dynamically-written<br>
static, but small, CSS file. It&#39;s actually faster and simpler to put<br>
the dynamic CSS inline on the page itself.<br>
<font color="#888888"><br>
-Otto<br>
</font><div><div></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>