Compress multiple CSS files
Join the DZone community and get the full member experience.Join For Free
Usually when you're using different CSS files on your site, they might take a quite long to be loadedload. Using this PHP code, you can compress them into a single file with no unnecessary white spaces or comments. Why we need to compress multiple CSS files? The answer is: the compressing procedure may take a less time than a total time of loading each file separately.
Opinions expressed by DZone contributors are their own.