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

Attribute selector performance over class selectors #6

Closed
7ammer opened this issue Jun 7, 2016 · 1 comment
Closed

Attribute selector performance over class selectors #6

7ammer opened this issue Jun 7, 2016 · 1 comment

Comments

@7ammer
Copy link

7ammer commented Jun 7, 2016

I really like the concept of this library! Traditionally though attribute selectors have been known to be a lot slower than classes as they are universal selectors. I'm curious, have you done any performance tests to see if there is a big difference?

@StefanKovac
Copy link
Owner

@7immy I haven't done any performance test, but you are right, universal selectors are slower than class selectors. However, nowdays browsers are really good at CSS parsing and you are unlikely to notice any difference in speed if you dealing with regular web projects. I guess some speed differences may be noticeable in test environments when you are dealing with tens of thousands of selectors at once.

Do you know any reliable way of testing CSS selector performance?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants