Join the DZone community and get the full member experience.
Join For Free
Start coding today to experience the powerful engine that drives data application’s development, brought to you in partnership with Qlik.
is a client-side CSS (de) compressor which can compress CSS-code to
save bandwidth by removing unnecessary white-space characters from CSS
code and also decompress/pretty print CSS-code for readability
and maintainability of the CSS-code. The typed or pasted CSS-code
should be valid CSS Level 1 and/or 2 code.
Currently the script performs the following actions on valid CSS-code:
- Optionally, remove all comments: All CSS comment-instructions can be removed, eg. everything between `/*' and `*/'.
- Remove unnecessary white-space:
All unnecessary white-space characters are removed. Additionaly, one
may choose to remove all newline characters as well, resulting in a
- Remove unnecessary value-types: When a value of a property equals `0' (zero), the compressor will remove type-declarations from the value, like `px' and `em'.
: http:/ / www. automotivecenter. nl/ diversen/ utility/ csscompressor/
Create data driven applications in Qlik’s free and easy to use coding environment, brought to you in partnership with Qlik.
Published at DZone with permission of
Hirvesh Munogee, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.