<div dir="ltr">I'm trying to understand the cost differential of binding events to objects versus binding events to the dom. It obviously depends on how many things I''m binding to (eg 100 similar objects or 100 similar dom elements) in that I can generally take advantage of delegation wiith the latter, but don't have the cost of the bubble/trickle with the former. Have any performance/scaling tests been implemented? Or is it a mute point and I don't know why?<br clear="all"> -- Christopher Thatcher </div>
The performance of triggering an event against 100 objects is probably the same as triggering against 100 DOM elements - but you're right, you don't get the advantage of event bubbling, or some such. --John
Leave a comment on jeresig's reply
Change topic type
Link this topic
Provide the permalink of a topic that is related to this topic