News for hackers. Stuff that matters.
Re:How Bad is DOM Interaction Really? by pcunite on Saturday August 10, 2013 @02:16PM (#6192056)
After 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? by oscilloscope on Saturday August 10, 2013 @02:39PM (#6192154)
You can use queues when creating a large number of elements. Use requestAnimationFrame and each frame pop some elements off the queue to render them. This will help prevent the page from locking up during render events.
Re:How Bad is DOM Interaction Really? by PavlovsCat on Saturday August 10, 2013 @03:01PM (#6192238)
Also, when adding many elements (or not so many, but over and over), add them to a DocumentFragment [ http://developer.mozilla.org/en-US/docs/Web/API/DocumentFrag... ] first, and then attach that to the DOM in one piece (one big DOM update is better than many small ones).
Re:How Bad is DOM Interaction Really? by slacka on Sunday August 11, 2013 @09:37AM (#6194916)
Avoiding writes to the DOM is a good tip for beginners. As a desktop developer, you're going to realize quickly that DOM is decent model for documents, but a terrible paradigm for interactive applications.

Overall performance is terrible and varies widely between browsers. We either need a new standard or a DOM browser battle like what happened with JavaScript, bringing it from 100x to 3x of native.

Re:How Bad is DOM Interaction Really? by TheAceOfHearts on Saturday August 10, 2013 @02:38PM (#6192148)
The only thing that matters in most cases is that it's being done over 60FPS. Use Chrome Dev Tools and to monitor the framerate.
Re:How Bad is DOM Interaction Really? by hising on Saturday August 10, 2013 @02:50PM (#6192207)
I guess knowledge like yours are important in making better tools and patterns available for JavaScript developers who haven't yet had the opportunity to work with those types of tools, patterns and languages you have. A big opportunity for people who come from more mature environments to share their knowledge!
Re:How Bad is DOM Interaction Really? by ivanca on Saturday August 10, 2013 @04:18PM (#6192503)
For performance any platform is a step backwards, the leveling for easier/broader access is never free.
Re:How Bad is DOM Interaction Really? by tlarkworthy on Saturday August 10, 2013 @06:46PM (#6192954)
try angular JS for self updating views.