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').

> It seems that it takes forever to do things that when done with
> document.getElementById, goes much quicker.

The speed of a simple $('#id') selector is slower than DOM, but it
shouldn't take forever. In fact, it's very optimized for that case.

If you provide a simplified example case that you think is overly
slow, perhaps someone can identify other issues contributing to the
performance problem.

Matt Kruse

Reply via email to