<?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: quick tips: efficient events</title>
	<atom:link href="http://verens.com/2008/06/08/quick-tips-efficient-events/feed/" rel="self" type="application/rss+xml" />
	<link>http://verens.com/2008/06/08/quick-tips-efficient-events/</link>
	<description>klog - Kae&#039;s Log</description>
	<lastBuildDate>Fri, 10 Feb 2012 21:49:24 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Kae Verens</title>
		<link>http://verens.com/2008/06/08/quick-tips-efficient-events/#comment-1119</link>
		<dc:creator>Kae Verens</dc:creator>
		<pubDate>Mon, 09 Jun 2008 23:50:49 +0000</pubDate>
		<guid isPermaLink="false">http://verens.com/archives/2008/06/08/quick-tips-efficient-events/#comment-1119</guid>
		<description>Mickster, yes. However, not if the elements are added asynchronously, as is in the case I describe above. For example, if KFM is displaying a directory with a thousand files in it, and the one you want to work with is in the first twenty, then you would want to start working with it as soon as it appears, and not to have to wait for the full thousand to complete so its mouseover/(etc) events are added.
  In the ideal case, as you say, all elements would be added synchronously, and events could be added to all at once.</description>
		<content:encoded><![CDATA[<p>Mickster, yes. However, not if the elements are added asynchronously, as is in the case I describe above. For example, if KFM is displaying a directory with a thousand files in it, and the one you want to work with is in the first twenty, then you would want to start working with it as soon as it appears, and not to have to wait for the full thousand to complete so its mouseover/(etc) events are added.<br />
  In the ideal case, as you say, all elements would be added synchronously, and events could be added to all at once.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mickster</title>
		<link>http://verens.com/2008/06/08/quick-tips-efficient-events/#comment-1118</link>
		<dc:creator>Mickster</dc:creator>
		<pubDate>Mon, 09 Jun 2008 19:23:42 +0000</pubDate>
		<guid isPermaLink="false">http://verens.com/archives/2008/06/08/quick-tips-efficient-events/#comment-1118</guid>
		<description>Hi Kae,

If you have 100 links, wouldn&#039;t it be even more efficient to have them all in a container and add just one click-handler on the container and let the event propagate on its child nodes? Then you could check the target to see which link that was clicked(?).

Not sure if it works the same with the mouseover/mouseout though...

Regards,
Mickster</description>
		<content:encoded><![CDATA[<p>Hi Kae,</p>
<p>If you have 100 links, wouldn&#8217;t it be even more efficient to have them all in a container and add just one click-handler on the container and let the event propagate on its child nodes? Then you could check the target to see which link that was clicked(?).</p>
<p>Not sure if it works the same with the mouseover/mouseout though&#8230;</p>
<p>Regards,<br />
Mickster</p>
]]></content:encoded>
	</item>
</channel>
</rss>

