| Apr | MAY | Jun |
| 23 | ||
| 2021 | 2022 | 2023 |
COLLECTED BY
Collection: Common Crawl
pad-me class:
.pad-me { padding-top: 10px; padding-right: 5px; padding-left: 5px; padding-bottom: 10px; }That example has 122 characters. A CSS minifier would take the above four lines and convert them to the following single line:
.pad-me{padding:10px5px5px10px}The result would have only a single line with 35 characters, that's 87 less characters that would need to be sent from the web server to the web browser! The minification process reduced the single CSS class by 71% but kept the exact same result when the web browser applies
pad-me to all elements with that
class.
The file size savings can be a major benefit when applied across hundreds or
thousands of lines in a typical CSS file. When you also multiply that savings
across every client that downloads the CSS from your web server or CDN it becomes
clear that minification is a powerful way to improve the efficiency of your
production web application.