title: DOM Manipulation vs Templating
body: <p>So I'm in the midst of a performance overhaul of a little HTML5 phonegap application I'm developing and I'm trying to figure out the best way to handle a semi-frequently updating <code>&lt;ul&gt;</code> element.</p>
  <p>I'm currently using <code>DocumentFragments</code> for the initial mass injection of the db data and then jQuery's <code>prepend()</code> and <code>remove()</code> functions for management.</p>
  <p>I've been looking at templates, <a href="https://ejs.co" rel="nofollow noreferrer">EJS</a> in particular, and I was wondering if I would get any performance boosts if I implemented it.</p>
  <p>If so why? And if not also why?</p>
  <p>Also any other tips for performant DOM manipulation are welcome. Thanks.</p>