<?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: How To Keep Widgets From Slowing Down Sites: WEDJE</title>
	<atom:link href="http://www.mikeindustries.com/blog/archive/2007/06/widget-deployment-with-wedje/feed" rel="self" type="application/rss+xml" />
	<link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2007%2F06%2Fwidget-deployment-with-wedje&amp;seed_title=How+To+Keep+Widgets+From+Slowing+Down+Sites%3A+WEDJE</link>
	<description>A running commentary of occasionally interesting things.</description>
	<lastBuildDate>Wed, 17 Mar 2010 23:49:46 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Anonymous</title>
		<link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2007%2F06%2Fwidget-deployment-with-wedje&amp;seed_title=How+To+Keep+Widgets+From+Slowing+Down+Sites%3A+WEDJE/comment-page-2#comment-39931</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Sun, 07 Dec 2008 14:38:18 +0000</pubDate>
		<guid isPermaLink="false">#comment-39931</guid>
		<description>Fixing the IE crash:

It seems like if the script src is added to the script element AFTER the script element is appended to the div, IE doesn&#039;t crash.
So, the setTimeout first argument should be: &quot;document.getElementById(&#039;wedje_div_yourcompanyname&#039;).appendChild(s);s.src=&#039;http://www.mikeindustries.com/blog/scripts/sleepywidget.php&#039;;&quot;.

Don&#039;t forget to remove the original s.src=... before the setTimeout call.</description>
		<content:encoded><![CDATA[<p>Fixing the IE crash:</p>
<p>It seems like if the script src is added to the script element AFTER the script element is appended to the div, IE doesn&#8217;t crash.<br />
So, the setTimeout first argument should be: &#8220;document.getElementById(&#8216;wedje_div_yourcompanyname&#8217;).appendChild(s);s.src=&#8217;http://www.mikeindustries.com/blog/scripts/sleepywidget.php&#8217;;&#8221;.</p>
<p>Don&#8217;t forget to remove the original s.src=&#8230; before the setTimeout call.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nikolay Kolev</title>
		<link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2007%2F06%2Fwidget-deployment-with-wedje&amp;seed_title=How+To+Keep+Widgets+From+Slowing+Down+Sites%3A+WEDJE/comment-page-2#comment-34101</link>
		<dc:creator>Nikolay Kolev</dc:creator>
		<pubDate>Sun, 31 Aug 2008 04:02:13 +0000</pubDate>
		<guid isPermaLink="false">#comment-34101</guid>
		<description>In its latest version, it crashes on IE7 every single time when I press Enter in the address bar.</description>
		<content:encoded><![CDATA[<p>In its latest version, it crashes on IE7 every single time when I press Enter in the address bar.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex Stubbs</title>
		<link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2007%2F06%2Fwidget-deployment-with-wedje&amp;seed_title=How+To+Keep+Widgets+From+Slowing+Down+Sites%3A+WEDJE/comment-page-2#comment-33466</link>
		<dc:creator>Alex Stubbs</dc:creator>
		<pubDate>Mon, 30 Jun 2008 23:28:07 +0000</pubDate>
		<guid isPermaLink="false">#comment-33466</guid>
		<description>Wow, I have been looking for this forever. This REALLY helped me out with the horrible twitter badge hanging my site everytime.

Thank you :)</description>
		<content:encoded><![CDATA[<p>Wow, I have been looking for this forever. This REALLY helped me out with the horrible twitter badge hanging my site everytime.</p>
<p>Thank you :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Wilson</title>
		<link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2007%2F06%2Fwidget-deployment-with-wedje&amp;seed_title=How+To+Keep+Widgets+From+Slowing+Down+Sites%3A+WEDJE/comment-page-2#comment-32018</link>
		<dc:creator>James Wilson</dc:creator>
		<pubDate>Sun, 03 Feb 2008 21:11:56 +0000</pubDate>
		<guid isPermaLink="false">#comment-32018</guid>
		<description>I like the method to isolate widget load from the page load.  Thanks.

We are looking to distribute widgets to clients.  Not every page view will use our widget, but only when the consumer directly interacts with the widget.  Therefore, to limit each trip to our server for the basic widget draw, we want to have the HTML live in the distributed .js file.   This way only when a consumer interacts with the widget will AJAX API calls come to our servers; otherwise it is all on our clients servers?  

So, deployment is providing the  snippet _AND_ the .js file which we ask them to host on their system. 

Again, the .js file contains the widget display, defaults, etc and the API calls to our systems.

Is this how other people are doing things?  What are some alternatives to think about.</description>
		<content:encoded><![CDATA[<p>I like the method to isolate widget load from the page load.  Thanks.</p>
<p>We are looking to distribute widgets to clients.  Not every page view will use our widget, but only when the consumer directly interacts with the widget.  Therefore, to limit each trip to our server for the basic widget draw, we want to have the HTML live in the distributed .js file.   This way only when a consumer interacts with the widget will AJAX API calls come to our servers; otherwise it is all on our clients servers?  </p>
<p>So, deployment is providing the  snippet _AND_ the .js file which we ask them to host on their system. </p>
<p>Again, the .js file contains the widget display, defaults, etc and the API calls to our systems.</p>
<p>Is this how other people are doing things?  What are some alternatives to think about.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike D.</title>
		<link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2007%2F06%2Fwidget-deployment-with-wedje&amp;seed_title=How+To+Keep+Widgets+From+Slowing+Down+Sites%3A+WEDJE/comment-page-2#comment-31792</link>
		<dc:creator>Mike D.</dc:creator>
		<pubDate>Sun, 20 Jan 2008 20:41:19 +0000</pubDate>
		<guid isPermaLink="false">#comment-31792</guid>
		<description>Hi Matt.  Yeah, that&#039;s probably just an artifact of me switching to WordPress... but yeah, I wouldn&#039;t use WEDJE at this point because I never got around to fully sussing out the IE6 issue.  It&#039;s unpredictable.</description>
		<content:encoded><![CDATA[<p>Hi Matt.  Yeah, that&#8217;s probably just an artifact of me switching to WordPress&#8230; but yeah, I wouldn&#8217;t use WEDJE at this point because I never got around to fully sussing out the IE6 issue.  It&#8217;s unpredictable.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: matt</title>
		<link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2007%2F06%2Fwidget-deployment-with-wedje&amp;seed_title=How+To+Keep+Widgets+From+Slowing+Down+Sites%3A+WEDJE/comment-page-2#comment-31788</link>
		<dc:creator>matt</dc:creator>
		<pubDate>Sun, 20 Jan 2008 03:13:56 +0000</pubDate>
		<guid isPermaLink="false">#comment-31788</guid>
		<description>The widget is not loading in the example?
Are some &quot;famous&quot; widgets using this technique? Or do the random crashing behaviour happen too often to be used in a real environment?

thanks!</description>
		<content:encoded><![CDATA[<p>The widget is not loading in the example?<br />
Are some &#8220;famous&#8221; widgets using this technique? Or do the random crashing behaviour happen too often to be used in a real environment?</p>
<p>thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike D.</title>
		<link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2007%2F06%2Fwidget-deployment-with-wedje&amp;seed_title=How+To+Keep+Widgets+From+Slowing+Down+Sites%3A+WEDJE/comment-page-2#comment-30532</link>
		<dc:creator>Mike D.</dc:creator>
		<pubDate>Fri, 07 Sep 2007 19:06:17 +0000</pubDate>
		<guid isPermaLink="false">#comment-30532</guid>
		<description>Joe.  Thanks for discovering this.  I had noticed some IE crashing as well and was never able to pin it down to a certain behavior.  The fact that it doesn&#039;t happen upon a full reload makes me think it&#039;s some sort of timing issue.  I&#039;ll look into it, but these things are pretty hard to debug sometimes...</description>
		<content:encoded><![CDATA[<p>Joe.  Thanks for discovering this.  I had noticed some IE crashing as well and was never able to pin it down to a certain behavior.  The fact that it doesn&#8217;t happen upon a full reload makes me think it&#8217;s some sort of timing issue.  I&#8217;ll look into it, but these things are pretty hard to debug sometimes&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe</title>
		<link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2007%2F06%2Fwidget-deployment-with-wedje&amp;seed_title=How+To+Keep+Widgets+From+Slowing+Down+Sites%3A+WEDJE/comment-page-2#comment-17883</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Tue, 28 Aug 2007 07:36:54 +0000</pubDate>
		<guid isPermaLink="false">#comment-17883</guid>
		<description>I did a little more testing, and it works, and you can refresh the page many times and it works. but, when you click in the address bar and simply press enter (ie. go to same page without refreshing...) it crashes.

Any fix for this?</description>
		<content:encoded><![CDATA[<p>I did a little more testing, and it works, and you can refresh the page many times and it works. but, when you click in the address bar and simply press enter (ie. go to same page without refreshing&#8230;) it crashes.</p>
<p>Any fix for this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe</title>
		<link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2007%2F06%2Fwidget-deployment-with-wedje&amp;seed_title=How+To+Keep+Widgets+From+Slowing+Down+Sites%3A+WEDJE/comment-page-2#comment-17505</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Mon, 27 Aug 2007 22:26:52 +0000</pubDate>
		<guid isPermaLink="false">#comment-17505</guid>
		<description>Hmm... I posted a comment here, and its gone :S

I tested this and less than 5 minutes in IE5 had crashed twice.</description>
		<content:encoded><![CDATA[<p>Hmm&#8230; I posted a comment here, and its gone :S</p>
<p>I tested this and less than 5 minutes in IE5 had crashed twice.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robin</title>
		<link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2007%2F06%2Fwidget-deployment-with-wedje&amp;seed_title=How+To+Keep+Widgets+From+Slowing+Down+Sites%3A+WEDJE/comment-page-1#comment-15555</link>
		<dc:creator>Robin</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-15555</guid>
		<description>Interesting. I&#039;ve always wondered what effects those fancy little widgets had on my loading times, I guess this confirms it. WEDJE sounds good.</description>
		<content:encoded><![CDATA[<p>Interesting. I&#8217;ve always wondered what effects those fancy little widgets had on my loading times, I guess this confirms it. WEDJE sounds good.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave S.</title>
		<link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2007%2F06%2Fwidget-deployment-with-wedje&amp;seed_title=How+To+Keep+Widgets+From+Slowing+Down+Sites%3A+WEDJE/comment-page-1#comment-15556</link>
		<dc:creator>Dave S.</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-15556</guid>
		<description>Thank god someone&#039;s thinking about this. Anyone from Technorati reading this? (hint hint: link count)</description>
		<content:encoded><![CDATA[<p>Thank god someone&#8217;s thinking about this. Anyone from Technorati reading this? (hint hint: link count)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Goodlatte</title>
		<link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2007%2F06%2Fwidget-deployment-with-wedje&amp;seed_title=How+To+Keep+Widgets+From+Slowing+Down+Sites%3A+WEDJE/comment-page-1#comment-15557</link>
		<dc:creator>Rob Goodlatte</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-15557</guid>
		<description>Hahah.  Leave it to Mike D to coin a term :)  If I use this method to embed an Atom feed widget, does that make it an &lt;em&gt;Atomic WEDJE&lt;/em&gt;?

Another caveat &#151; the external script cannot itself use document.write to deliver it&#039;s code.  This shouldn&#039;t be a problem because innerHTML&#039;ing the widgetholder anchor div inserts the code exactly where document.write would.  But it does make it difficult to adapt already existing scripts that use document.write to use the WEDJE insert method.  And it also means that the external script has to specifically reference the div that&#039;s been written by the inline script on the target site.  

I spent about an hour last night trying to adapt the WEDJE method to work with javascript Flickr badges to no avail &#151; you just can&#039;t use document.write in the external script as far as I can tell.</description>
		<content:encoded><![CDATA[<p>Hahah.  Leave it to Mike D to coin a term :)  If I use this method to embed an Atom feed widget, does that make it an <em>Atomic WEDJE</em>?</p>
<p>Another caveat &#8212; the external script cannot itself use document.write to deliver it&#8217;s code.  This shouldn&#8217;t be a problem because innerHTML&#8217;ing the widgetholder anchor div inserts the code exactly where document.write would.  But it does make it difficult to adapt already existing scripts that use document.write to use the WEDJE insert method.  And it also means that the external script has to specifically reference the div that&#8217;s been written by the inline script on the target site.  </p>
<p>I spent about an hour last night trying to adapt the WEDJE method to work with javascript Flickr badges to no avail &#8212; you just can&#8217;t use document.write in the external script as far as I can tell.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Wood</title>
		<link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2007%2F06%2Fwidget-deployment-with-wedje&amp;seed_title=How+To+Keep+Widgets+From+Slowing+Down+Sites%3A+WEDJE/comment-page-1#comment-15558</link>
		<dc:creator>Dan Wood</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-15558</guid>
		<description>Very cool.  In Sandvox we call these things &quot;pagelets&quot; since &quot;widget&quot;, to a Mac user, is something that goes into Dashboard.

I like the idea here but there are some issues with document.write in XHTML... A &lt;a href=&quot;http://www.google.com/search?q=xhtml%20document.write%20problem&quot; rel=&quot;nofollow&quot;&gt;google search&lt;/a&gt; reveals some explanation of the issue.


So I&#039;m wondering if there is a way to avoid the document.write and do the operation completley with DOM operations....</description>
		<content:encoded><![CDATA[<p>Very cool.  In Sandvox we call these things &#8220;pagelets&#8221; since &#8220;widget&#8221;, to a Mac user, is something that goes into Dashboard.</p>
<p>I like the idea here but there are some issues with document.write in XHTML&#8230; A <a href="http://www.google.com/search?q=xhtml%20document.write%20problem" rel="nofollow">google search</a> reveals some explanation of the issue.</p>
<p>So I&#8217;m wondering if there is a way to avoid the document.write and do the operation completley with DOM operations&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike D.</title>
		<link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2007%2F06%2Fwidget-deployment-with-wedje&amp;seed_title=How+To+Keep+Widgets+From+Slowing+Down+Sites%3A+WEDJE/comment-page-1#comment-15559</link>
		<dc:creator>Mike D.</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-15559</guid>
		<description>Dan: Yet another reason why serving pages up with an XML mimetype seems pointless to me.  So much downside, so little upside... for now at least. :)

The original version of WEDJE (which is to say, the version we cooked up last night), wrote the container div out as part of the standard HTML, so you could always do that I suppose.</description>
		<content:encoded><![CDATA[<p>Dan: Yet another reason why serving pages up with an XML mimetype seems pointless to me.  So much downside, so little upside&#8230; for now at least. :)</p>
<p>The original version of WEDJE (which is to say, the version we cooked up last night), wrote the container div out as part of the standard HTML, so you could always do that I suppose.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Goodlatte</title>
		<link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2007%2F06%2Fwidget-deployment-with-wedje&amp;seed_title=How+To+Keep+Widgets+From+Slowing+Down+Sites%3A+WEDJE/comment-page-1#comment-15560</link>
		<dc:creator>Rob Goodlatte</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-15560</guid>
		<description>Dan &#151; you can avoid the document.write by simple including the widgetholder div right above the script block &#151; That was how we originally hacked this thing together.  Mike had the good idea to include the div inside the script itself to make the whole thing a bite more self-contained, but the document.write part of the script isn&#039;t essential if you want to avoid it.

I&#039;m pretty sure you need some sort of tag with a unique id on the target site to reference with the external script &#151; that DOM hook is what allows the browser to go back and deposit the external script&#039;s embedded content after it&#039;s moved on to render the rest of the page.</description>
		<content:encoded><![CDATA[<p>Dan &#8212; you can avoid the document.write by simple including the widgetholder div right above the script block &#8212; That was how we originally hacked this thing together.  Mike had the good idea to include the div inside the script itself to make the whole thing a bite more self-contained, but the document.write part of the script isn&#8217;t essential if you want to avoid it.</p>
<p>I&#8217;m pretty sure you need some sort of tag with a unique id on the target site to reference with the external script &#8212; that DOM hook is what allows the browser to go back and deposit the external script&#8217;s embedded content after it&#8217;s moved on to render the rest of the page.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
