How to write Efficient CSS
I came across a good article called How to write efficient CSS today. It is a guide that shows several ways you can reduce the size of your CSS files (CSS shortcuts, etc).
Tweet
Comments
Be wary - efficient is not the same as maintainable. Although I use many of these shortcuts, it does obfuscate the code somewhat making maintenance possibly more difficult. Since the CSS file is typically cached after one hit to your site, there are diminishing levels of return for anyone not running monster traffic.
Those are good points Brian. As for the CSS file being cached, this is true - however - the benefit of having a fast loading CSS style sheet, is a faster load for the first impressions.
That said it still may be a moot point on a broadband connection a user will not likely notice the difference.
If your going to optimize for size your best bet is probably to focus on your HTML header and footer.
tomake my html efficient
That article seems to have moved here: http://www.communitymx.com/content/article.cfm?cid=90F55
Post a Comment
Recent Entries
- ColdFusion returning empty response with server-error: true
- Careful applying CF11u16, CF2016u8, CF2018u2
- Sessions don't work in Chrome but do in IE
- csrfVerifyToken does not invalidate the token
- The cf_sql_ is optional in cfqueryparam
- Cookie Expires / Max-Age 1969-12-31T23:59:59.000Z
- Burst Throttling on AWS API Gateway Explained
- How to Resolve Java HTTPS Exceptions