by andyshora on 8/10/13, 5:10 PM with 33 comments
by ender7 on 8/10/13, 6:58 PM
Reflows are very expensive. So are repaints. Chrome dev tools will allow you to detect issues with both of those.
by kellegous on 8/10/13, 7:09 PM
Just looking at their implementations in WebKit should tell you why:
https://github.com/WebKit/webkit/blob/master/Source/WebCore/...
https://github.com/WebKit/webkit/blob/master/Source/WebCore/...
by malandrew on 8/10/13, 6:37 PM
You absolutely can touch the DOM, but should do so through and interface that manages or eliminates repaint and reflow.
by ihsw on 8/10/13, 8:23 PM
http://learn.jquery.com/performance/
It's brief and quite informative.
by pcunite on 8/10/13, 6:16 PM
Here I come html5!
by bkjelden on 8/10/13, 6:25 PM
So I'd add the caveat to caching jQuery selectors that standard premature optimization rules still apply.
by Semiapies on 8/10/13, 6:36 PM
by eagsalazar2 on 8/10/13, 7:30 PM
Really the resize thing is sort of bs also because it is such an incredibly rare thing to handle (99% of all apps will never ever require handling resize except to test responsive designs)
by chime on 8/10/13, 7:13 PM