However, one web developer rejects this request and says IE cannot take CSS files with 5000 rules. I don't know this, so test it using IE8, FF8 and Chrome15, and the result reveals that Internet explorer 8 does not take the 4096 rule from one CSS file.
This blog (CSS size limit in Internet Explorer 8) also explains the similar problem and includes more IE related CSS limit. However, please note 4096 is not file size, but rule numbers. About the file size, the blog also mentioned IE6/IE7: Limit for CSS file size around 285KB (depends on specific stylesheet)
CSS best practices
- Write succinct CSS - don't forget CSS stands for Cascading Style Sheets, so avoid redundancy in your CSS. Use shorthands, use cascading codes
- Write correct CSS - don't forget validate your CSS using validators, csslint
- CSS compressor/optimizer - for performance using tools
- CSS Drive
- CSS Compressor
- CSS Optimizer
- Clean CSS
- Pingates
- PHP Insider
- SevenForty
- Arantius
- Lottery Post
- Page Column
- Gzip CSS - save more than 70% size
No comments:
Post a Comment