-
-
Notifications
You must be signed in to change notification settings - Fork 79k
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
Selector optimization #100
Comments
For sure. We've made incremental changes to a lot of things to try to optimize selectors. Good feedback here :). We'll try to make this a continual effort, in addition to fixing this issues here. |
It's good to hear that you're interested. I just recently created a pull request consisting of multiple optimizations; see #114. |
i believe these were included in 1.2 thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Even though nesting properties in LESS feels so natural, it often results in inefficient CSS that overuses the costly descendant selector, as shown below:
Removing the superfluous descendants yields much more optimized—and simplified—CSS:
Although these changes may make the LESS files a tad less intuitive, they are valuable when it comes to speed and will be of benefit to a large CSS framework such as this.
The text was updated successfully, but these errors were encountered: