Wait, dont know if you realize what they say above, and i have done
some dom tables (not 2000 elements though) but i get decent speed.
If you do dom injection this is the way to go:
1. create the table and headers
2. loop through data, and inject rows into table
3. inject table into dom

Dont inject the table into the dom beforehand, as the performance will
suffer.
Try this and see if it makes a difference.

On Jun 17, 5:16 pm, Kai Gülzau <[email protected]> wrote:
> > To have the best speed you will have to construct a string just like you did
> > on your 'innerHTML' test, including the table element and setting the html
> > property of a div or whatever container you want the table in.
>
> Reconstructing the whole table is not an option.
> It's a sorted table which stores some information in thead.
>
> So i think i have to opt for pure DOM this time :'(
>
> Regards,
>
> Kai Gülzau

Reply via email to