Oops I mean event.
On Dec 30, 8:11 pm, Kean <shenan...@gmail.com> wrote: > Sounds like your nodes have to much element binded to them. > > On Dec 30, 1:00 pm, Adam Guichard <amguich...@gmail.com> wrote: > > > It ran in 5ms, but its my understanding if I use the method your > > suggesting I'll be leaking memory. If I just set the innerhtml = "", > > I think the dom element's children aren't disposed. They just sit > > around chewing up memory, so I don't think I can use the method your > > suggesting. > > > On Dec 30, 2:42 pm, MorningZ <morni...@gmail.com> wrote: > > > > just for laughs...see of > > > > document.getElementById("ID of Div Tag").innerHTML = ""; > > > > is anything of an improvement > > > > On Dec 30, 3:02 pm, Adam Guichard <amguich...@gmail.com> wrote: > > > > > I'm using jTemplates to create a client grid, but I'm having trouble > > > > with load times. When I'm paging through the grid jTemplates is > > > > taking 4+ seconds to clear the grid and 2+ seconds to load it. I've > > > > got some work to do to make the loading time go down, but I'm worried > > > > about the clearing time. I've tried a few different methods, but > > > > nothing seems to be really fast. I'd like to be able to clear the div > > > > in less than a second. Here's what I've tried: > > > > > $(selector).empty() and $(selector).html('') both took between 3-4 > > > > seconds > > > > > Does anyone know of a faster way to empty the child elements of a div?