📜 ⬆️ ⬇️

Choosing the best online CSS compression service

css compression


Currently, there are a huge number of web tools for optimizing CSS files. Most of them have their own algorithm of work (there are, of course, duplicates). The effectiveness of the programs themselves is also significantly different. In addition, some optimizers can “break” CSS code, after which styles become invalid. As practice shows, the percentage of such "useful" tools is quite high.

This article is a test report of the most popular online optimizers. The experiment was conducted on 3 CSS files. Links to each of them are given in the results table.

The main goal of the work is a comparative characteristic of services in terms of the main indicator (degree of compression). The presence of various settings, usability and other minor factors were not taken into account.
')
It is worth saying that 6 out of 17 optimizers reviewed did not cope with the task. Results that have not been validated after compression are marked with a dash.
CSS file linkwww.kartinki24.ru/templates/kartinki/style/styles.cssgidonline.club/wp-content/themes/gidonline/style25.cssspb.azbyka.net/views/azbyka/css/style.cssWed result after compression,%
Original size, KB21.4926.2023,18
ServiceResults, KB
askapache.com/online-tools/compress-css18.5524.2323,1793.06
cleancss.com/css-minify18.0123.6722.3890.39
codebeautifier.com----
creativyst.com/Prod/320.58-23,18-
css-school.ru/optimiser16.9523.00--
csscompressor.com17.7723.4622.3289.67
cssdrive.com/index.php/main/csscompressor18.0223.6622.3790.38
cssportal.com/css-optimize19.2926.2023,1896.9
cssresizer.com17.0720.2022.3584.13
cy-pr.com/tools/css16.7922.98--
iceyboard.no-ip.org/projects/css_compressor-22.75--
lotterypost.com/css-compress.aspx17.7823.4322.3189.63
pagecolumn.com/tool/css_compressor.htm18.0723.66--
partnerki-runeta.ru/css-optimized18.0923.6722.3890.5
phpinsider.com/compress_css.php19.2925.4422.3894.69
prohtml.net/services/css-min18.3624.2722.3791.72
refresh-sf.com16.8721.1822.1985

As we see, it is impossible to single out the leader unequivocally. In each of the 3 tests, the minimum size was achieved using different services. However, if we consider the average result, then 2 tools stand out with a sufficiently large margin:
  1. cssresizer.com (84.13%);
  2. refresh-sf.com (85%).

The bronze medalist was csscompressor.com , with the result (89.67%). The rest of the programs were able to reduce the size of styles by no more than 10%.

Source: https://habr.com/ru/post/306442/


All Articles