<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Event Handling versus  Event Delegation</title>
	<atom:link href="http://www.wait-till-i.com/2006/09/24/event-handling-versus-event-delegation/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.wait-till-i.com/2006/09/24/event-handling-versus-event-delegation/</link>
	<description>Chris Heilmann - Accessibility, Web Development and Pragmatism - can talk, will travel</description>
	<lastBuildDate>Sun, 21 Mar 2010 21:10:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: James</title>
		<link>http://www.wait-till-i.com/2006/09/24/event-handling-versus-event-delegation/comment-page-1/#comment-11926</link>
		<dc:creator>James</dc:creator>
		<pubDate>Thu, 20 Aug 2009 17:12:51 +0000</pubDate>
		<guid isPermaLink="false">#comment-11926</guid>
		<description>I&#039;m wondering if anybody has any hard stats of the memory and/or performance improvements in using event delegation. I develop a pretty large web app, and for ~400 event listeners, using event delegation saves me about 7 MBs in IE7. But considering the total memory usage is ~260 MBs, it seems like a pretty small savings that&#039;s not worth the trouble of implementing event delegation (I have more complicated DOM structure than just a list). Anybody have any insight in this to?</description>
		<content:encoded><![CDATA[<p>I&#8217;m wondering if anybody has any hard stats of the memory and/or performance improvements in using event delegation. I develop a pretty large web app, and for ~400 event listeners, using event delegation saves me about 7 MBs in <span class="caps">IE7.</span> But considering the total memory usage is ~260 MBs, it seems like a pretty small savings that&#8217;s not worth the trouble of implementing event delegation (I have more complicated <span class="caps">DOM </span>structure than just a list). Anybody have any insight in this to?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yaroukh</title>
		<link>http://www.wait-till-i.com/2006/09/24/event-handling-versus-event-delegation/comment-page-1/#comment-11289</link>
		<dc:creator>Yaroukh</dc:creator>
		<pubDate>Fri, 03 Jul 2009 17:19:57 +0000</pubDate>
		<guid isPermaLink="false">#comment-11289</guid>
		<description>OMG

Steve Bush: +1

People, you don&#039;t delegate anything! There is no &quot;event handling&quot; vs. &quot;event delegating&quot;. When you speak about &quot;delegating events&quot; you still _handle_ events.
Events do _bubble_ (many years now) i.e. browser _propagates_ them through DOM - in which process you can &quot;catch&quot; and _handle_ them. And all of this is happenning regardles of where you attach your event-handlers to, ragerdless of where you _handle_ those events.</description>
		<content:encoded><![CDATA[<p><span class="caps">OMG</span></p>
<p>Steve Bush: +1</p>
<p>People, you don&#8217;t delegate anything! There is no &#8220;event handling&#8221; vs. &#8220;event delegating&#8221;. When you speak about &#8220;delegating events&#8221; you still <em>handle</em> events.<br />
Events do <em>bubble</em> (many years now) i.e. browser <em>propagates</em> them through <span class="caps">DOM </span>- in which process you can &#8220;catch&#8221; and <em>handle</em> them. And all of this is happenning regardles of where you attach your event-handlers to, ragerdless of where you <em>handle</em> those events.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Bush</title>
		<link>http://www.wait-till-i.com/2006/09/24/event-handling-versus-event-delegation/comment-page-1/#comment-8081</link>
		<dc:creator>Steve Bush</dc:creator>
		<pubDate>Fri, 25 Jul 2008 07:25:53 +0000</pubDate>
		<guid isPermaLink="false">#comment-8081</guid>
		<description>This should be called &quot;The benefits of using Event Bubbling&quot; and not have a new obscure term Event Delegation invented for it.</description>
		<content:encoded><![CDATA[<p>This should be called &#8220;The benefits of using Event Bubbling&#8221; and not have a new obscure term Event Delegation invented for it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Diego Perini</title>
		<link>http://www.wait-till-i.com/2006/09/24/event-handling-versus-event-delegation/comment-page-1/#comment-6903</link>
		<dc:creator>Diego Perini</dc:creator>
		<pubDate>Wed, 16 Jan 2008 22:28:23 +0000</pubDate>
		<guid isPermaLink="false">#comment-6903</guid>
		<description>Christian,
this is the most well written description of Event Delegation, my congrats, info on this is scarce.

I used it so much that I should make my own scripts to handle that with selectors. I can actually handle also the &quot;focus&quot; and &quot;blur&quot; events cross-browser by implementing a small trick in the handling/fixing of events.

You can see my work on delegates here:

http://javascript.nwbox.com/NWEvents/

Look under Delegates to see the only example specific to this method bound to CSS3 Selectors.
Though my syntax is not that short compared to jQuery or similar, I think the idea is unique.

I was searching for &quot;delegates&quot; related to &quot;onload&quot; problems but was not able to find anywhere talking about the fact that &quot;Event Delegation&quot; can lead to avoid having to resort to &quot;onload&quot; or similar method to attach functionality to the page at initial startup.

You seem to have a deep knowledge of these techniques, I would like your suggestion and comments on my implementation and possible improvements.

Do you mind if I copy (with credits) some Delegation example to include on my site ?</description>
		<content:encoded><![CDATA[<p>Christian,<br />
this is the most well written description of Event Delegation, my congrats, info on this is scarce.</p>
<p>I used it so much that I should make my own scripts to handle that with selectors. I can actually handle also the &#8220;focus&#8221; and &#8220;blur&#8221; events cross-browser by implementing a small trick in the handling/fixing of events.</p>
<p>You can see my work on delegates here:</p>
<p><a href="http://javascript.nwbox.com/NWEvents/" rel="nofollow">http://javascript.nwbox.com/NWEvents/</a></p>
<p>Look under Delegates to see the only example specific to this method bound to <span class="caps">CSS3</span> Selectors.<br />
Though my syntax is not that short compared to jQuery or similar, I think the idea is unique.</p>
<p>I was searching for &#8220;delegates&#8221; related to &#8220;onload&#8221; problems but was not able to find anywhere talking about the fact that &#8220;Event Delegation&#8221; can lead to avoid having to resort to &#8220;onload&#8221; or similar method to attach functionality to the page at initial startup.</p>
<p>You seem to have a deep knowledge of these techniques, I would like your suggestion and comments on my implementation and possible improvements.</p>
<p>Do you mind if I copy (with credits) some Delegation example to include on my site ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://www.wait-till-i.com/2006/09/24/event-handling-versus-event-delegation/comment-page-1/#comment-5830</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Thu, 04 Oct 2007 20:55:16 +0000</pubDate>
		<guid isPermaLink="false">#comment-5830</guid>
		<description>How do you go about using either (bubbling or handling) to the history plugin by Klaus?


$(&#039;a.remote&#039;).remote(&#039;#place&#039;, function() {
                    if (window.console &amp;&amp; window.console.info) {
                        console.info(&#039;content loaded&#039;);
                    }
                    
                });
                

$.ajaxHistory.initialize();</description>
		<content:encoded><![CDATA[<p>How do you go about using either (bubbling or handling) to the history plugin by Klaus?</p>
<p>$(&#8216;a.remote&#8217;).remote(&#8216;#place&#8217;, function() {<br />
                    if (window.console &amp;&amp; window.console.info) {<br />
                        console.info(&#8216;content loaded&#8217;);<br />
                    }</p>
<p>                });
                </p>
<p>$.ajaxHistory.initialize();</p>
]]></content:encoded>
	</item>
</channel>
</rss>
