Over a million developers have joined DZone.

Compress multiple CSS files

DZone's Guide to

Compress multiple CSS files

· ·
Free Resource

  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.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}