jquery / learn.jquery.com

jQuery Learning Center web site content
https://learn.jquery.com
Other
924 stars 485 forks source link

Selector Performance #106

Open ajpiano opened 12 years ago

ajpiano commented 12 years ago

Much has been written and discussed over the years with respect to selector performance -- however, the best practises have also evolved over time as performance inside of jQuery has improved, and browsers have improved (especially the advent of QSA). A lot of the literature out there on this comes from different points in history, which leads newcomers to get a skewed view of priorities. We should explain some of this history and use this article as the clearing house on what is currently "best," things like

(Hoping to get a lift here from @timmywil after the Sizzle rewrite for 1.8. @crowchick proposed some content for this in #54 that could certainly be fleshed out here to anyone's heart's content)

arthurvr commented 9 years ago

First step in #650.