jQuery too much overhead? What kind of environment was that?
Just compare the work a browser has to do for something like:
document.getElementById("foo").setAttribute("bar", "baz");
to the work needed for the jquery equivalent...Now the good thing is that most consumers of jquery don't care about performance of their code (in that they're doing small enough amounts of stuff it doesn't matter much).
$('#foo').attr('bar', 'baz');
your code is30 times faster in Chrome 9
81 times faster in Firefox 3.6
> Now the good thing is that most consumers of jquery don't
> care about performance of their code
Many do, but more do care about cross-browser compatibility and when you need to support IE6,7 home-rolled code is not likely to cut all the research and effort that's embedded in jQuery.