> On the other hand, jQuery is not just a lot of code, it's tested code
I haven't really looked at it from that point of view, I guess that is a pretty a pretty big advantage. The basics of writing a widget are pretty simple most of the time, but testing it on different browsers and edge cases always takes more time than I think it will.