Re:You Don't Need JQuery
by sfeng on Tuesday December 16, 2014 @02:46PM
(#8758945)
This may seem anecdotal, but I can tell you from writing a lot of non-jQueryified code that with modern browsers, applying classes to dozens of elements dynamically can be an anti-pattern. 99% of the time, when doing something which previously would have required that, I can use a single class on a parent element.
[ Parent
| on HN ]
Not if you're in an environment (like mobile) where you want to reduce repaint.
In which case you don't want to be using jQuery at all and should instead be using a virtual DOM implementation like virtual-dom, famo.us, react or mithril.
Re:You Don't Need JQuery
by ulisesrmzroche on Thursday December 18, 2014 @10:12AM
(#8767537)
What if you don't have the option to all of a sudden bust out a new framework? Some of these scenarios are just unrealistic.
Re:You Don't Need JQuery
by ulisesrmzroche on Tuesday December 16, 2014 @05:51PM
(#8760093)
No, you're going to mess with repaints and renders. It is not an anti pattern.