3 ms·
What do you think about jquery selectors? Do the same objections apply?
by erikpukinskis 14y ago
What do you think about jquery selectors? Do the same objections apply?
- aurelianito 14y agoCSS selectors also give me this bad feeling when used in javascript code.
- nadaviv 14y agoI think they do too. I used to fall-back to vanilla DOM queries sometimes when I started using jQuery, because it didn't feel quite right, and I always worried about the performance hit... but I ended up always using CSS selectors, unless there's a good reason not to. I think the main difference is that the value proposition of CSS selectors is just better than of the string-function syntax, so its worth it.