منسق JSON
نسّق JSON لتسهيل قراءته.
أزل المسافات غير الضرورية في CSS.
Uses a CSS parser to remove formatting safely. Required spaces in expressions and string contents are preserved.
الطرق التفصيلية والأمثلة متاحة باللغة الإنجليزية.
A CSS syntax tree is parsed and serialized compactly. This removes optional formatting without naive substitutions that could damage strings, URLs, or calc expressions. File-size figures count UTF-8 bytes.
The rule .box { color: red; padding: 10px 20px; } becomes .box{color:red;padding:10px 20px}.
Remove formatting from a small stylesheet or check the size difference between a readable source and compact output. The parser-based approach handles CSS syntax more reliably than simply deleting every space.
Certain spaces are required by CSS grammar or are meaningful inside values and strings. Deleting them could change the stylesheet behavior.
It can reduce text size, but loading performance also depends on delivery compression, caching, render-blocking styles, and the rest of the page. Compare the actual transferred output in your browser tools.