News for hackers. Stuff that matters.
Re:New MVC client side JavaScript framework - Serenade.js by no-espam on Monday January 30, 2012 @01:54PM (#3530068)
Some advice on views, returning DOM nodes is not performant. DOM insertion is costly. Consider a view representing a message in a chat room or tweets. What if you want to insert 1000 messages in to a parent view? Building all the messges in a string is much faster than inserting a DOM element for each message. Google jsperf and see how badly the jquery template engine performs which is based on DOMs versus micro-templating.

There are no comments on this comment yet.