HTML5 Canvas
Written by: Simon Sarris
Featured Refcardz: Top Refcardz:
  1. Apache Hadoop
  2. Web Driver
  3. MVVM
  4. REST
  5. ADO.NET
  1. HTML5
  2. Ajax
  3. jQuery Selectors
  4. CSS Part 1
  5. Git

Link Details

Link 8437 thumbnail
User 205047 avatar

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.
  • 14
  • 0
  • 2064
  • 0

Comments

Add your comment
User 200670 avatar

coboldinosaur replied ago:

0 votes Vote down Vote up Reply

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.

User 205047 avatar

Lowell Heddings replied ago:

0 votes Vote down Vote up Reply

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.

User 1 avatar

rick replied ago:

0 votes Vote down Vote up Reply

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!

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.