3 ms·
Also, you need to be really careful about memory leaks when replacing the DOM wholesale as you recommend in http://blog.rassemblr.com/2011/05/on-client-side-tem
by spjwebster 15y ago
Also, you need to be really careful about memory leaks when replacing the DOM wholesale as you recommend in http://blog.rassemblr.com/2011/05/on-client-side-templating-part-ii-mustache-json-jquery-and-some-fun/ http://blog.rassemblr.com/2011/05/on-client-side-templating-...
Any references to old DOM nodes need to be cleared to avoid memory leaks, and any event handlers not attached to the document object will need to be reregistered.