[theme-reviewers] stylesheet import vs enqueue

Otto otto at ottodestruct.com
Wed Oct 19 20:32:50 UTC 2011


BTW, @import is bad and should generally be avoided for speed reasons.
There's some good reasons to use it at certain times, and some very
good reasons not to the rest of the time.

More: http://www.stevesouders.com/blog/2009/04/09/dont-use-import/

-Otto



On Thu, Oct 20, 2011 at 2:26 PM, Justin Tadlock
<justin at justintadlock.com> wrote:
> That's perfectly fine.
>
> The stylesheets that must be enqueued are additional stylesheets other than
> the main style.css if you're adding them to the header.  wp_enqueue_style()
> should be used as opposed to adding <link rel="stylesheet"> directly to
> header.php.
>
> On 10/19/2011 2:32 PM, Paul de Wouters wrote:
>
> Hi
> In the theme review guide by Chip, it says stylesheets must be enqueued, so
> does that mean that if the main stylesheet is empty except for 3 @import
> declarations, the theme isn't valid?
>


More information about the theme-reviewers mailing list