<?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: JavaScript Badges And Widgets Considered Harmful?</title>
	<atom:link href="http://robert.accettura.com/blog/2007/02/12/javascript-badges-and-widgets-considered-harmful/feed/" rel="self" type="application/rss+xml" />
	<link>http://robert.accettura.com/blog/2007/02/12/javascript-badges-and-widgets-considered-harmful/</link>
	<description>Robert Accettura&#039;s Personal Blog on Web Development and Tech</description>
	<lastBuildDate>Wed, 17 Mar 2010 13:35:22 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Wladimir Palant</title>
		<link>http://robert.accettura.com/blog/2007/02/12/javascript-badges-and-widgets-considered-harmful/comment-page-1/#comment-119842</link>
		<dc:creator>Wladimir Palant</dc:creator>
		<pubDate>Tue, 13 Feb 2007 17:39:12 +0000</pubDate>
		<guid isPermaLink="false">http://robert.accettura.com/archives/2007/02/12/javascript-badges-and-widgets-considered-harmful/#comment-119842</guid>
		<description>Robert, there are almost no HTTP/1.0 servers out there so the relevant pref is network.http.max-persistent-connections-per-server - 2 connections per server. And that is more than enough in almost every case. A typical blog has no frames, only a few scripts and stylesheets, less than 10 images. If you try to use more connections the time to create those connections will eat all the advantage you get from it (not even counting additional server name lookups or server-side overhead).

Now if you insert third-party content on the server side you won&#039;t get much impact on page load times because it is mostly HTML code that can be easily cached and compressed. You don&#039;t need to give up neither server-side caching (caching parts of the page separately isn&#039;t a big deal) nor client-side caching. JavaScript widgets are different, they usually inhibit caching and are sent uncompressed (Netscape 4 compatibility?). Also note that they delay parsing of the page which has a very bad impact on *perceived* page load times.

My conclusion is: these JavaScript widgets are in fact very bad (in particular the security implications). Unfortunately stating this won&#039;t make them go away, as you correctly noted neither content providers nor the majority of bloggers will make an effort to change anything. For my part I don&#039;t use any external scripts on my site even though I use third-party content on a few occasions - it is fetched on the server-side.</description>
		<content:encoded><![CDATA[<p>Robert, there are almost no HTTP/1.0 servers out there so the relevant pref is network.http.max-persistent-connections-per-server &#8211; 2 connections per server. And that is more than enough in almost every case. A typical blog has no frames, only a few scripts and stylesheets, less than 10 images. If you try to use more connections the time to create those connections will eat all the advantage you get from it (not even counting additional server name lookups or server-side overhead).</p>
<p>Now if you insert third-party content on the server side you won&#8217;t get much impact on page load times because it is mostly HTML code that can be easily cached and compressed. You don&#8217;t need to give up neither server-side caching (caching parts of the page separately isn&#8217;t a big deal) nor client-side caching. JavaScript widgets are different, they usually inhibit caching and are sent uncompressed (Netscape 4 compatibility?). Also note that they delay parsing of the page which has a very bad impact on *perceived* page load times.</p>
<p>My conclusion is: these JavaScript widgets are in fact very bad (in particular the security implications). Unfortunately stating this won&#8217;t make them go away, as you correctly noted neither content providers nor the majority of bloggers will make an effort to change anything. For my part I don&#8217;t use any external scripts on my site even though I use third-party content on a few occasions &#8211; it is fetched on the server-side.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
