<?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="https://mikeindustries.com/blog/archive/2007/06/widget-deployment-with-wedje/feed" rel="self" type="application/rss+xml" />
	<link>https://mikeindustries.com/blog/archive/2007/06/widget-deployment-with-wedje</link>
	<description>A running commentary of occasionally interesting things — from Mike Davidson.</description>
	<lastBuildDate>Thu, 26 May 2016 06:34:30 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>
	<item>
		<title>
		By: Jason		</title>
		<link>https://mikeindustries.com/blog/archive/2007/06/widget-deployment-with-wedje#comment-68464</link>

		<dc:creator><![CDATA[Jason]]></dc:creator>
		<pubDate>Mon, 07 Jun 2010 15:45:04 +0000</pubDate>
		<guid isPermaLink="false">#comment-68464</guid>

					<description><![CDATA[Sorry, the html was filtered out of that last post...  It should say &quot;Why not just put the &#039;div&#039; tag above the script tag.]]></description>
			<content:encoded><![CDATA[<p>Sorry, the html was filtered out of that last post&#8230;  It should say &#8220;Why not just put the &#8216;div&#8217; tag above the script tag.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jason		</title>
		<link>https://mikeindustries.com/blog/archive/2007/06/widget-deployment-with-wedje#comment-68463</link>

		<dc:creator><![CDATA[Jason]]></dc:creator>
		<pubDate>Mon, 07 Jun 2010 15:39:14 +0000</pubDate>
		<guid isPermaLink="false">#comment-68463</guid>

					<description><![CDATA[Sorry to bring an old post back to life, but I have a question I don&#039;t see an obvious answer for...

Why not just put the  tag above the script tag?  This way you wouldn&#039;t have to worry out the differences between text/html and application/xml.

Is there something obvious I&#039;m missing here?

Thanks for the great informative post/thread btw.]]></description>
			<content:encoded><![CDATA[<p>Sorry to bring an old post back to life, but I have a question I don&#8217;t see an obvious answer for&#8230;</p>
<p>Why not just put the  tag above the script tag?  This way you wouldn&#8217;t have to worry out the differences between text/html and application/xml.</p>
<p>Is there something obvious I&#8217;m missing here?</p>
<p>Thanks for the great informative post/thread btw.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Anonymous		</title>
		<link>https://mikeindustries.com/blog/archive/2007/06/widget-deployment-with-wedje#comment-39931</link>

		<dc:creator><![CDATA[Anonymous]]></dc:creator>
		<pubDate>Sun, 07 Dec 2008 14:38:18 +0000</pubDate>
		<guid isPermaLink="false">#comment-39931</guid>

					<description><![CDATA[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;https://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;https://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>https://mikeindustries.com/blog/archive/2007/06/widget-deployment-with-wedje#comment-34101</link>

		<dc:creator><![CDATA[Nikolay Kolev]]></dc:creator>
		<pubDate>Sun, 31 Aug 2008 04:02:13 +0000</pubDate>
		<guid isPermaLink="false">#comment-34101</guid>

					<description><![CDATA[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>https://mikeindustries.com/blog/archive/2007/06/widget-deployment-with-wedje#comment-33466</link>

		<dc:creator><![CDATA[Alex Stubbs]]></dc:creator>
		<pubDate>Mon, 30 Jun 2008 23:28:07 +0000</pubDate>
		<guid isPermaLink="false">#comment-33466</guid>

					<description><![CDATA[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>https://mikeindustries.com/blog/archive/2007/06/widget-deployment-with-wedje#comment-32018</link>

		<dc:creator><![CDATA[James Wilson]]></dc:creator>
		<pubDate>Sun, 03 Feb 2008 21:11:56 +0000</pubDate>
		<guid isPermaLink="false">#comment-32018</guid>

					<description><![CDATA[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>https://mikeindustries.com/blog/archive/2007/06/widget-deployment-with-wedje#comment-31792</link>

		<dc:creator><![CDATA[Mike D.]]></dc:creator>
		<pubDate>Sun, 20 Jan 2008 20:41:19 +0000</pubDate>
		<guid isPermaLink="false">#comment-31792</guid>

					<description><![CDATA[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>https://mikeindustries.com/blog/archive/2007/06/widget-deployment-with-wedje#comment-31788</link>

		<dc:creator><![CDATA[matt]]></dc:creator>
		<pubDate>Sun, 20 Jan 2008 03:13:56 +0000</pubDate>
		<guid isPermaLink="false">#comment-31788</guid>

					<description><![CDATA[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>https://mikeindustries.com/blog/archive/2007/06/widget-deployment-with-wedje#comment-30532</link>

		<dc:creator><![CDATA[Mike D.]]></dc:creator>
		<pubDate>Fri, 07 Sep 2007 19:06:17 +0000</pubDate>
		<guid isPermaLink="false">#comment-30532</guid>

					<description><![CDATA[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>https://mikeindustries.com/blog/archive/2007/06/widget-deployment-with-wedje#comment-17883</link>

		<dc:creator><![CDATA[Joe]]></dc:creator>
		<pubDate>Tue, 28 Aug 2007 07:36:54 +0000</pubDate>
		<guid isPermaLink="false">#comment-17883</guid>

					<description><![CDATA[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>https://mikeindustries.com/blog/archive/2007/06/widget-deployment-with-wedje#comment-17505</link>

		<dc:creator><![CDATA[Joe]]></dc:creator>
		<pubDate>Mon, 27 Aug 2007 22:26:52 +0000</pubDate>
		<guid isPermaLink="false">#comment-17505</guid>

					<description><![CDATA[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: Dave S.		</title>
		<link>https://mikeindustries.com/blog/archive/2007/06/widget-deployment-with-wedje#comment-15556</link>

		<dc:creator><![CDATA[Dave S.]]></dc:creator>
		<pubDate>Tue, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-15556</guid>

					<description><![CDATA[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: Mike D.		</title>
		<link>https://mikeindustries.com/blog/archive/2007/06/widget-deployment-with-wedje#comment-15559</link>

		<dc:creator><![CDATA[Mike D.]]></dc:creator>
		<pubDate>Tue, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-15559</guid>

					<description><![CDATA[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>https://mikeindustries.com/blog/archive/2007/06/widget-deployment-with-wedje#comment-15560</link>

		<dc:creator><![CDATA[Rob Goodlatte]]></dc:creator>
		<pubDate>Tue, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-15560</guid>

					<description><![CDATA[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 &#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&#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 &#151; 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>
		<item>
		<title>
		By: Rob Goodlatte		</title>
		<link>https://mikeindustries.com/blog/archive/2007/06/widget-deployment-with-wedje#comment-15566</link>

		<dc:creator><![CDATA[Rob Goodlatte]]></dc:creator>
		<pubDate>Tue, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-15566</guid>

					<description><![CDATA[Jeff &#151; I created a few test pages to look at serving XHTML as XML.  There aren&#039;t any problems serving XHTML with the xml declaration plus the application/xhtml+xml content type &#151; as long as the document has a .html extension.  If you use a .xml or .xhtml extension then the external innerHTML doesn&#039;t work. 

&lt;a href=&quot;http://robgoodlatte.com/dev/WEDJE/xmlT3.xhtml&quot; rel=&quot;nofollow&quot;&gt;Here&#039;s one of my test pages that demonstrates WEDJE + an external innerHTML script not working in an XHTML as XML doc with a .xhtml extension&lt;/a&gt;

&lt;a href=&quot;http://robgoodlatte.com/dev/WEDJE/xmlT3.html&quot; rel=&quot;nofollow&quot;&gt;Here&#039;s the exact same code working with a .html extension&lt;/a&gt;

Fortunately, the code thats sitting on the end user&#039;s site doesn&#039;t use innerHTML.  So if you were concerned about putting your widget on sites created by XHTML as XML claquers, you could use a different (&lt;em&gt;and slower&lt;/em&gt;) insertion method in the external script.

I&#039;ll do some more tests to see if I can get WEDJE working on XHTML as XML by not using innerHTML in the remote script.  Thankfully I think there are few sites out there that serve up pages with .xml or .xhtml extensions.]]></description>
			<content:encoded><![CDATA[<p>Jeff &#151; I created a few test pages to look at serving XHTML as XML.  There aren&#8217;t any problems serving XHTML with the xml declaration plus the application/xhtml+xml content type &#151; as long as the document has a .html extension.  If you use a .xml or .xhtml extension then the external innerHTML doesn&#8217;t work. </p>
<p><a href="http://robgoodlatte.com/dev/WEDJE/xmlT3.xhtml" rel="nofollow">Here&#8217;s one of my test pages that demonstrates WEDJE + an external innerHTML script not working in an XHTML as XML doc with a .xhtml extension</a></p>
<p><a href="http://robgoodlatte.com/dev/WEDJE/xmlT3.html" rel="nofollow">Here&#8217;s the exact same code working with a .html extension</a></p>
<p>Fortunately, the code thats sitting on the end user&#8217;s site doesn&#8217;t use innerHTML.  So if you were concerned about putting your widget on sites created by XHTML as XML claquers, you could use a different (<em>and slower</em>) insertion method in the external script.</p>
<p>I&#8217;ll do some more tests to see if I can get WEDJE working on XHTML as XML by not using innerHTML in the remote script.  Thankfully I think there are few sites out there that serve up pages with .xml or .xhtml extensions.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
