Do querySelectorAll()
selectors get evaluated right-to-left like CSS ones, or does it do so left-to-right?
It's right to left, this why the right side should be more specific than the left side.
jQuery selectors should get more specific from left to right. Selectors are parsed in reverse order, so making sure that your most specific selector is on the right will increase performance..
It says "jQuery" but it's true for all CSS selectors.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With