How to Minimize Complexity of CSS
In an age where search engine optimization (SEO) is of vital importance in getting traffic to your website, optimizing all code on your site is necessary. Cascading style sheet (CSS) files can be very large and complex, depending on the nature of your site. One of the criteria many search engines measure your website by is load time. An oversized and overcomplex CSS file will increase that load time. It's important to minimize CSS complexity using an online compression tool.
Instructions
-
-
1
Go to Online YUI Compressor. Click "File," then click "Choose Files." Locate and select your CSS. Select "CSS" frm the filetype drop-down and click "Compress."
-
2
Go to CSS Compressor. CSS Compressor is different from YUI Compressor as it only allows for copy and paste input. Switch to your CSS code, highlight it and copy it. Switch back to CSS Compressor and paste it into the input field. Select your 'Compression Mode' and hit "Compress."
-
-
3
Go to CSS Optimizer. Enter the URL if your CSS is online. Click "Choose File" if your CSS is stored in a file, or paste it into the final box. Click "Optimize" when you're done.
-
1