Re:Ask HN: Anyone have a really smart way to organize css?
by AyKarsi on Monday March 28, 2011 @05:55AM
(#2377788)
What would you put in chunks.css? Could you maybe provide a brief example?
Re:Ask HN: Anyone have a really smart way to organize css?
by kaylarose on Monday March 28, 2011 @10:32AM
(#2378474)
I can't speak for the OP, but as I use a similar system I can venture a guess that some of the following might be worthy of chunk status...
For a website: callouts, user quote styles, tables styles [zebra stripes, etc.], feature lists, intro paragraph styles, Flash/message styles, common control styles, etc.
Re:Ask HN: Anyone have a really smart way to organize css?
by keyle on Monday March 28, 2011 @06:45AM
(#2377856)
That makes a lot of CSS files. Google chrome network optimization would tell you to reduce the amount of includes to speed up your site. That said that is debatable since it would be quickly cached.
Re:Ask HN: Anyone have a really smart way to organize css?
by thenduks on Monday March 28, 2011 @07:29AM
(#2377940)
As he says at the end, one would obviously not just stick a big stack of `link`s in the page. Some kind of build system/asset packager would be necessary and desired (so you aren't forced to write a huge monolithic css file that no one but your past-self can navigate :)).
All files get concatenated and minified before serving, obviously.