How Bad is DOM Interaction Really?
andyshora.com
How Bad is DOM Interaction Really?
1–10 of 38 posts
Re: How Bad is DOM Interaction Really?
#2Here I come html5!
Re: How Bad is DOM Interaction Really?
#3So I'd add the caveat to caching jQuery selectors that standard premature optimization rules still apply.
Re: How Bad is DOM Interaction Really?
#4Re: How Bad is DOM Interaction Really?
#5You absolutely can touch the DOM, but should do so through and interface that manages or eliminates repaint and reflow.
Re: How Bad is DOM Interaction Really?
#6After 10+ years as a performance leaning C++ desktop app developer I'm looking for any and all tips to make JavaScript (jQuery too) work in perceivably faster ways. I'm use to threading database calls, using message queues, and views updating themselves from caches. It’s a new world for me and feels somewhat like a step backwards. Here I come html5!
Re: How Bad is DOM Interaction Really?
#7After 10+ years as a performance leaning C++ desktop app developer I'm looking for any and all tips to make JavaScript (jQuery too) work in perceivably faster ways. I'm use to threading database calls, using message queues, and views updating themselves from caches. It’s a new world for me and feels somewhat like a step backwards. Here I come html5!
Re: How Bad is DOM Interaction Really?
#8After 10+ years as a performance leaning C++ desktop app developer I'm looking for any and all tips to make JavaScript (jQuery too) work in perceivably faster ways. I'm use to threading database calls, using message queues, and views updating themselves from caches. It’s a new world for me and feels somewhat like a step backwards. Here I come html5!
Re: How Bad is DOM Interaction Really?
#9No discussion of repaint and reflow? You can't leave a discussion of those out when talking about the cost of DOM manipulation. You absolutely can touch the DOM, but should do so through and interface that manages or eliminates repaint and reflow.
Making single frame of JS code to run fast is cool and dandy, but eventually browser will have to make freeze and do reflow+repaint. Eventually it will make profiling harder, think about caching .offsetHeight etc. properties. It does decrease script execution time, but it does not make your app to work faster.
Re: How Bad is DOM Interaction Really?
#10Reflows are very expensive. So are repaints. Chrome dev tools will allow you to detect issues with both of those.