[jQuery] Re: jQuery speed seems slow

2009-10-15 Thread k3liutZu
On Oct 15, 8:42 am, JenniferWalters jenniferwalt...@email.com wrote: I do agree on smaller DOM trees, a user really is not able to tell the difference and jQuery is so much easier to code. What Michael and James are trying to tell you is that the jQuery selector for ID (eg. $('#myID'))

[jQuery] Re: jQuery speed seems slow

2009-10-15 Thread Nick Fitzsimons
2009/10/14 James james.gp@gmail.com: Unless your DOM tree is huge and you're trying to select something massive in one go, the performance difference between a simple jQuery ID selector (e.g. $(#myID)) vs. a native getElementById selector should be very negligible, because jQuery uses

[jQuery] Re: jQuery speed seems slow

2009-10-14 Thread Matt Kruse
On Oct 14, 3:33 pm, JenniferWalters jenniferwalt...@email.com wrote: Are jQuery searches slow versus using DOM? (i.e. document.getElementById(whatever) ) Of course. jQuery adds many function calls and layers of abstraction when you do $('#whatever') vs. document.getElementById('whatever').

[jQuery] Re: jQuery speed seems slow

2009-10-14 Thread JenniferWalters
I don't have a specific code snippet that is a problem. I just started using jQuery instead of DOM because everyone speaks of it. I do qutie a bit of Setup stuff at the start of web pages, and I have noticed a tremendous difference in the time a user can begin actually working in the web page

[jQuery] Re: jQuery speed seems slow

2009-10-14 Thread James
Unless your DOM tree is huge and you're trying to select something massive in one go, the performance difference between a simple jQuery ID selector (e.g. $(#myID)) vs. a native getElementById selector should be very negligible, because jQuery uses that same native selector. You should

[jQuery] Re: jQuery speed seems slow

2009-10-14 Thread Michael Geary
On Wed, Oct 14, 2009 at 3:48 PM, James james.gp@gmail.com wrote: Unless your DOM tree is huge and you're trying to select something massive in one go, the performance difference between a simple jQuery ID selector (e.g. $(#myID)) vs. a native getElementById selector should be very

[jQuery] Re: jQuery speed seems slow

2009-10-14 Thread JenniferWalters
Unfortunately the site is internal and I am not able to let you guys get to it. And what you said is correct. Some of the web pages are huge. One has eight tab pages with quite a bit of DOM in them. Another can have a couple of hundred elements that need to be displayed\hidden depending on