3 ms·
Yeah, the jQuery case is kind of what I was picturing they were comparing it against, but I didn't want to say it. But reasonably-performant plain JS is pretty
by Groxx 13y ago
Yeah, the jQuery case is kind of what I was picturing they were comparing it against, but I didn't want to say it. But reasonably-performant plain JS is pretty simple, it's just a bit different than you tend to see in jQuery-infested realms[1]. And reflows aren't that hard to understand or control, and it can also easily only do one - just do it all in a loop and don't try to read values after setting related ones.
[1]: http://cl.ly/image/2I1v3H053L0Y http://cl.ly/image/2I1v3H053L0Y jQuery really is great, but getting away from it is great too.
- byroot 13y ago> And reflows aren't that hard to understand or control, and it can also easily only do one Yeah you easily get bitten by jQuery because it mix reads with writes under the hood. I prefer to use it most of the time for browser compat / easier maintainability, but it's crazy the performance you can save by bypassing it in hotspots.