Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

User talk:Nkuttler

Hi again. I made some notes for you here: http://codex.wordpress.org/Talk:Theme_Unit_Test

Hi Nkuttler. Regarding changes in 1: I removed the extraneous style.css information since 1) it's incorrect and 2) wouldn't belong in that page if it were correct.

It doesn't belong there because the list where you added it is a list of required theme template files, and has nothing to do with optimization or best practices in CSS compression. That information should be on its own page since it's a best practice or recommendation and not a standard for WordPress theme development.

Why it's incorrect: style.css files can be minified and gzipped without using wp_enqueue_style. It's also not good advice to recommend moving CSS into separate files. That causes more HTTP requests and since styles are split into several files it is harder to maintain.

I'm not sure how you could misread what I wrote. No, the style.css file can't be minified on the server, as the theme system for example doesn't recognize the theme without the theme header. The headers are useless to anybody but the theme system. Of course you can add a plugin or somesuch to serve them minified, which is a rather bad idea when the idea was to optimize resource usage. And no, you don't get an additional HTTP request because, like I wrote, I recommend to use one different css file, and not to split the css into several files. Anyway, I'll keep the info on my blog then. Nkuttler 00:26, 27 October 2010 (UTC)