hey, I’m currently working on a project, where a bunch of container views (probably up to 8 or 10 views) render lots of child views (~20 - 30 per container view) which are all using the same Handlebars template. The template is already precompiled and makes use of a few custom helpers.
at first, I wasn’t using the Handlebars templates for the child views and just creating the whole HTML markup structure with
Em.$() jQuery wrapped in a function which is called
.on('didInsertElement). however I thought that it would increase the rendering time/performance if I use a Handlebars template instead of rendering jQuery to the container view, but I was surprised to see the opposite! The performance when using the template was significantly slower then using jQuery. I tried to rip out my custom Handlebars helpers and do the rendering even without them, but again it was slower than the raw jQuery solution. did anybody else ran into the same issues? are there any hints, tips or even tricks I’m not aware of?