I am confused with CSS Aggregation. Could anyone describe.
When I googled, its redirecting me to some drupal stuff.
Is the CSS Aggregation deals with the Sprites, compression of css stuffs?
Kindly guide me.
Thanks,
Easwar
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s just a process of combining multiple CSS files into a single file. This is often combined with minimizing the CSS file as well. As a result, your page only contains a single, quite small CSS file instead of many large ones, thus speeding up downloads.
This is often a separate process, because for development it is easier to have multiple CSS files, each for a specific purpose, and each richly commented. During deployment to a production server, this development CSS can be aggregated to a single file.
Of course your server side templating must be smart enough to understand this. If you have CSS references in your header template, it’s hard to replace them. A better solution would be to have a collection of files to include and generate the HTML for that on the go. That way, your production website could include the aggregated CSS, while the development website could use the separate CSS’s. Toggling between them is just a confguration setting.
A similar process can be used for Javascript.