Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sort CSS declarations #334

Closed
Siilwyn opened this issue Jan 5, 2017 · 0 comments
Closed

Sort CSS declarations #334

Siilwyn opened this issue Jan 5, 2017 · 0 comments

Comments

@Siilwyn
Copy link
Contributor

Siilwyn commented Jan 5, 2017

I propose to add CSS declaration sorting. Sorted declarations would make the gzipped size smaller because there will be more similar strings.

To make this even better I'm also thinking of adding an order in the sorting module that sorts rules based on what kind of value they can contain. Putting declarations that only have a few possible values on top will result in more 'duplicate' declarations and thus even a better gzip compression.

Thoughts?

@ben-eb ben-eb added this to the 4.0 milestone Jan 5, 2017
@ben-eb ben-eb closed this as completed in 214bd0a Jul 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants