By lowellheddings
via g-loaded.eu
Published: Dec 05 2006 / 11:11
Usually, when writing or modifying a CSS file, the author adds comments and excessive indentation to the code in order to preserve its readability and to simplify maintenance. Although this might be a good habit, all those extra bits stored into the CSS file increase its filesize.



Comments
coboldinosaur replied ago:
You should have this under humor. The author is a joke. He talks about a technique that at is very best may reduce response time by 1 or 2% on a page of garbage, bloated code generated by wordpress which ads 10-15% to response time over a properly written page that is directly maintainable.
Lowell Heddings replied ago:
Yeah, I think that javascript is more of a culprit than CSS for bloat.
A wordpress theme compressor plugin is actually a pretty good idea. I'd assume it would be relatively easy.
rick replied ago:
IntelliJ IDEA is getting some interesting features that allow it to identify and warn you about where your rendered CSS will get you into trouble with browser quirks and incompatibilities.
I wonder if they could add some type of "refactoring CSS compression" that moves attributes to selectors higher in the applicable rendering chain to consolidate and simplify? That would rock!
Voters For This Link (14)
Voters Against This Link (0)