In my opinion... the good point is, well, the reduction in file size.  
The only thing is that your stylesheet is unlikely to be over 50kb 
unless you've really gone to town.  50kb is a lot to someone on dial up, 
but then so is most things on the web these days.  To someone on 
broadband, its very little.  If you reduce it by 50%, you're left with 
25k - which is still a lot for dial-up and not for broadband.  Yes it 
helps, but it could turn out to be negligible.

The bad point is that your CSS / JS files are going to become 
unreadable.  Or at least, very hard to read.  So ideally you'll want to 
keep a backup of the original - in which case you have to minify it 
again every time you make a change.  To me, thats a hassle I know I'd 
get bored of by about the 3rd time.

Although I can't see how it would take the browser longer to process.  
If its being gzipped then maybe, but simply removing whitespace, etc?  
I'd have thought that would actually speed things up because theres less 
eroneous characters to process.  Although I admit I may be wrong - 
probably worth looking into.

So I'd say as long as you're keeping a backup (which you say you do) 
then theres no harm in it and there are *some* benefit, albeit small 
benefits.  If you can be bothered, do it.  If not, don't bother!





Alex Weber wrote:
> No I mean "minifying" like Paulo pointed out.
> Basically what it does is strip white-space, comments, shortens
> variable names, uses shorthand, etc, etc
>
> approximately a 50% file-size reduction... YUI works for both JS and
> CSS
>
> I usually use uncompressed stuff for development but compress
> everything for production...
>
> just wanted to hear others opinions!
>
> On Oct 15, 11:13 pm, "André Ferreira" <[EMAIL PROTECTED]> wrote:
>   
>> Compressing CSS files? You mean using shorthand sintax?
>>
>>
>>
>> On Wed, Oct 15, 2008 at 9:03 AM, Alex Weber <[EMAIL PROTECTED]> wrote:
>>
>>     
>>> i've been recommended to use Yahoo's YUI minifier to not only compress
>>> js files but also css files.
>>>       
>>> i've also read that compressed files = faster download but takes time
>>> to "decompress" for usage
>>>       
>>> so where's the line?
>>>       
>>> for example is it worth compressing a 5KB css file into a 3KB file?
>>> probably not right?
>>> where would you start?
>>>       
>>> also, are there any drawbacks to compressing css?
>>> thanks!
>>>       
>> --
>> André Ferreira
>> [EMAIL PROTECTED]
>>     
> >
>   

-- 


Mou
http://mou.me.uk/


--~--~---------~--~----~------------~-------~--~----~
--
You received this because you are subscribed to the "Design the Web with CSS" 
at Google groups.
To post: [email protected]
To unsubscribe: [EMAIL PROTECTED]
-~----------~----~----~----~------~----~------~--~---

Reply via email to