[jQuery] Fastest way to clear child elements from a div

[jQuery] Fastest way to clear child elements from a div


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?