[jQuery] Re: selector best practice

2009-02-18 Thread Henrik Javén
Your test case is not comparing a raw implementation You are still using jQuery $ inside the loop, it should be pure document.getElementById("test"); When you remove the $ from your test case and use native implementation you will be getting numbers in the following range: FF ID Raw: 1 ID jQuer

[jQuery] Re: Optimize large DOM inserts

2009-02-05 Thread Henrik Javén
this will be significantly faster var html = []; $.each(data, function(i, row) { html.push('data from json'); }); $("tbody").append(html.join('')); $("table").formatTable(); On Feb 5, 12:56 pm, James wrote: > I see. Thanks for the tip. I'll try to work on that! > > On Feb 5, 10:38 am,

[jQuery] Re: Optimize large DOM inserts

2009-02-05 Thread Henrik Javén
This will be significantly faster var html = []; $.each(data, function(i, row) { html.push('data from json'); }); $("tbody").append(html.join('')); $("table").formatTable(); On Feb 5, 12:56 pm, James wrote: > I see. Thanks for the tip. I'll try to work on that! > > On Feb 5, 10:38 am,