3 ms·
Mostly. The livequery plugin lets you watch for new elements and do something when they appear. It's a little resource intensive, since it polls the DOM repea
by mrkurt 18y ago
Mostly. The livequery plugin lets you watch for new elements and do something when they appear. It's a little resource intensive, since it polls the DOM repeatedly. The jQuery version doesn't have that, and probably for good reason.
- nirmal 18y agoI believe the jQuery version attaches the handlers to document which allows it to use event bubbling. I got this info from a comment posted here by jresig himself. http://news.ycombinator.com/item?id=406653 http://news.ycombinator.com/item?id=406653