
<?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: Code efficiency and Javascript in WordPress</title>
	<atom:link href="http://www.stratos.me/2009/04/code-efficiency-and-javascript-in-wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stratos.me/2009/04/code-efficiency-and-javascript-in-wordpress/</link>
	<description>Just writing what hits my mind!</description>
	<lastBuildDate>Thu, 13 Jan 2011 22:34:15 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Donace &#124; TheNexus</title>
		<link>http://www.stratos.me/2009/04/code-efficiency-and-javascript-in-wordpress/comment-page-1/#comment-1876</link>
		<dc:creator>Donace &#124; TheNexus</dc:creator>
		<pubDate>Sun, 26 Apr 2009 19:42:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.stratos.me/?p=981#comment-1876</guid>
		<description>I got like 30 though of those only 3 are &#039;functionality&#039; based and not SEO/Speed/Security Based.

Think i&#039;ll have to hire you and Jeff sometime to make me a killer theme and optimize it!</description>
		<content:encoded><![CDATA[<p>I got like 30 though of those only 3 are &#8216;functionality&#8217; based and not SEO/Speed/Security Based.</p>
<p>Think i&#8217;ll have to hire you and Jeff sometime to make me a killer theme and optimize it!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gry dla Dzieci</title>
		<link>http://www.stratos.me/2009/04/code-efficiency-and-javascript-in-wordpress/comment-page-1/#comment-1797</link>
		<dc:creator>Gry dla Dzieci</dc:creator>
		<pubDate>Tue, 07 Apr 2009 11:43:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.stratos.me/?p=981#comment-1797</guid>
		<description>Code efficiency is especialy important when doing anything in JS. If it&#039;s done the wrong way it can slow the wole browser down to the point that the visitors will never come back.</description>
		<content:encoded><![CDATA[<p>Code efficiency is especialy important when doing anything in JS. If it&#8217;s done the wrong way it can slow the wole browser down to the point that the visitors will never come back.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John @ Professional Web Design</title>
		<link>http://www.stratos.me/2009/04/code-efficiency-and-javascript-in-wordpress/comment-page-1/#comment-1794</link>
		<dc:creator>John @ Professional Web Design</dc:creator>
		<pubDate>Tue, 07 Apr 2009 02:15:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.stratos.me/?p=981#comment-1794</guid>
		<description>Great thread. Different ideas just keep on coming. Thanks for being so informative on your posts!

-----------------------------

http://www.jsws.com.au/web-design</description>
		<content:encoded><![CDATA[<p>Great thread. Different ideas just keep on coming. Thanks for being so informative on your posts!</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p><a href="http://www.jsws.com.au/web-design" rel="nofollow">http://www.jsws.com.au/web-design</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stratosg</title>
		<link>http://www.stratos.me/2009/04/code-efficiency-and-javascript-in-wordpress/comment-page-1/#comment-1792</link>
		<dc:creator>stratosg</dc:creator>
		<pubDate>Mon, 06 Apr 2009 21:58:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.stratos.me/?p=981#comment-1792</guid>
		<description>@Funny Stuff: Well it all depends on the functionality you want your blog to have. More complex things need more plugins. Plus, things like Sociable icons on the bottom, for a non techie one, need a plugin too... So, 25 is not recommended but definitely reachable....</description>
		<content:encoded><![CDATA[<p>@Funny Stuff: Well it all depends on the functionality you want your blog to have. More complex things need more plugins. Plus, things like Sociable icons on the bottom, for a non techie one, need a plugin too&#8230; So, 25 is not recommended but definitely reachable&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Funny Stuff</title>
		<link>http://www.stratos.me/2009/04/code-efficiency-and-javascript-in-wordpress/comment-page-1/#comment-1791</link>
		<dc:creator>Funny Stuff</dc:creator>
		<pubDate>Mon, 06 Apr 2009 21:53:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.stratos.me/?p=981#comment-1791</guid>
		<description>I use about 15 different plugins, but I&#039;m thinking about getting rid of a couple I don&#039;t really use anymore, but never got around to removing them. I don&#039;t know how you manage to use 25 plugins Kim, what kind of plugins are you using?</description>
		<content:encoded><![CDATA[<p>I use about 15 different plugins, but I&#8217;m thinking about getting rid of a couple I don&#8217;t really use anymore, but never got around to removing them. I don&#8217;t know how you manage to use 25 plugins Kim, what kind of plugins are you using?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stratosg</title>
		<link>http://www.stratos.me/2009/04/code-efficiency-and-javascript-in-wordpress/comment-page-1/#comment-1784</link>
		<dc:creator>stratosg</dc:creator>
		<pubDate>Sun, 05 Apr 2009 15:16:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.stratos.me/?p=981#comment-1784</guid>
		<description>@Richard: I think this is the best bet. Convincing coders to write efficiently. If i might add convince web masters to choose wisely ;)</description>
		<content:encoded><![CDATA[<p>@Richard: I think this is the best bet. Convincing coders to write efficiently. If i might add convince web masters to choose wisely <img src='http://www.stratos.me/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://www.stratos.me/2009/04/code-efficiency-and-javascript-in-wordpress/comment-page-1/#comment-1783</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Sat, 04 Apr 2009 20:38:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.stratos.me/?p=981#comment-1783</guid>
		<description>Thanks statos for your comment. I guess one of the best options is to try to entice developers to adsopt good code practices. Ideally we would see wordpress have some standards QA to qualify plugins as approved or not. That&#039;s a whole other subjecyt, I know. 
@ PC you may want to see http://wordpress.org/extend/plugins/footer-javascript/ which loads javascripts in the footer. Won&#039;t work if the script uses document.write to insert part of the page&#039;s content though.</description>
		<content:encoded><![CDATA[<p>Thanks statos for your comment. I guess one of the best options is to try to entice developers to adsopt good code practices. Ideally we would see wordpress have some standards QA to qualify plugins as approved or not. That&#8217;s a whole other subjecyt, I know.<br />
@ PC you may want to see <a href="http://wordpress.org/extend/plugins/footer-javascript/" rel="nofollow">http://wordpress.org/extend/plugins/footer-javascript/</a> which loads javascripts in the footer. Won&#8217;t work if the script uses document.write to insert part of the page&#8217;s content though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stratosg</title>
		<link>http://www.stratos.me/2009/04/code-efficiency-and-javascript-in-wordpress/comment-page-1/#comment-1780</link>
		<dc:creator>stratosg</dc:creator>
		<pubDate>Sat, 04 Apr 2009 00:38:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.stratos.me/?p=981#comment-1780</guid>
		<description>@Sire: I am really glad it has been resolved now. I hope you get some ideas here to implement in order to get some more functionality ;) Thanks for dropping by!</description>
		<content:encoded><![CDATA[<p>@Sire: I am really glad it has been resolved now. I hope you get some ideas here to implement in order to get some more functionality <img src='http://www.stratos.me/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  Thanks for dropping by!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sire</title>
		<link>http://www.stratos.me/2009/04/code-efficiency-and-javascript-in-wordpress/comment-page-1/#comment-1779</link>
		<dc:creator>Sire</dc:creator>
		<pubDate>Sat, 04 Apr 2009 00:23:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.stratos.me/?p=981#comment-1779</guid>
		<description>Hi Stratos. Nice little discussion you are having here. As you know I was having some problems with some of my other blogs using too much CPU, and that has all been fixed, mainly by deleting a whole lot of plugins. The blogs load so much faster now but I do miss some of the plugins.

I&#039;ve incorporated some of your ideas to speed my other blogs up, like the sociable links, and will come back regularly to see what else I can learn</description>
		<content:encoded><![CDATA[<p>Hi Stratos. Nice little discussion you are having here. As you know I was having some problems with some of my other blogs using too much CPU, and that has all been fixed, mainly by deleting a whole lot of plugins. The blogs load so much faster now but I do miss some of the plugins.</p>
<p>I&#8217;ve incorporated some of your ideas to speed my other blogs up, like the sociable links, and will come back regularly to see what else I can learn</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stratosg</title>
		<link>http://www.stratos.me/2009/04/code-efficiency-and-javascript-in-wordpress/comment-page-1/#comment-1778</link>
		<dc:creator>stratosg</dc:creator>
		<pubDate>Fri, 03 Apr 2009 22:47:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.stratos.me/?p=981#comment-1778</guid>
		<description>@Richard: First of all thanks a lot for taking the time and effort to comment on this one (it must have taken ages to write in this tiny panel). Now to the point.

1. I will have to agree with you on that one. But, the essence of what i said in the post is that if you get to have that much overhead then probably you must think of reducing your plugins. And now that i&#039;m thinking about it you can also search for alternatives on the plugins that cause the problem.

2. That is not totally true. Chrome for instance spawns a whole new process just to download and run scripts. On the other hand i will agree again. Too many requests = slow response times. Still, think about reducing your plugins ;)

3. WordPress get&#039;s it&#039;s power from the hundreds of the devoted fans and coders out there (and in here :P ). Having a fan code a plugin can give you power but there is a trade off. He is not that good so the product might not be as optimized as possible. That can cause problems on slowing the rendering time. But, in my opinion, that&#039;s fair enough to have some extra needed functionality added. Some rubbish on the options table is nothing compared to the rubbish post revisions saved on the posts page.

4. All these problems rely on the expertise and code efficiency of the coder (that&#039;s why i titled the post like this). If you enqueue the script with the right version WordPress will load it only once. But, if you go on and import your own one, or even worse (yes i&#039;ve seen that) dump it within your code with a simple script tag then mayhem will erupt. But still, that is for the developer to decide and not the end user.

In my oppinion, wp_enqueue_script is fair enough. I don&#039;t think there is a need to add more control since this would add a bigger burden on a platform that has to do too much already. I am sorry to sound so negative but this is how i see things as a developer right now..... Again thanks for commenting and leaving feedback for a valuable conversation

@PC: The loading of the components relies solely on the browser it&#039;s self. The only way i can see us doing it is by creating a new small JS that will run on loading completion and then start loading the other JS with Ajax. Still, i don&#039;t see that as a solution.... Thanks for dropping by!</description>
		<content:encoded><![CDATA[<p>@Richard: First of all thanks a lot for taking the time and effort to comment on this one (it must have taken ages to write in this tiny panel). Now to the point.</p>
<p>1. I will have to agree with you on that one. But, the essence of what i said in the post is that if you get to have that much overhead then probably you must think of reducing your plugins. And now that i&#8217;m thinking about it you can also search for alternatives on the plugins that cause the problem.</p>
<p>2. That is not totally true. Chrome for instance spawns a whole new process just to download and run scripts. On the other hand i will agree again. Too many requests = slow response times. Still, think about reducing your plugins <img src='http://www.stratos.me/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>3. WordPress get&#8217;s it&#8217;s power from the hundreds of the devoted fans and coders out there (and in here <img src='http://www.stratos.me/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  ). Having a fan code a plugin can give you power but there is a trade off. He is not that good so the product might not be as optimized as possible. That can cause problems on slowing the rendering time. But, in my opinion, that&#8217;s fair enough to have some extra needed functionality added. Some rubbish on the options table is nothing compared to the rubbish post revisions saved on the posts page.</p>
<p>4. All these problems rely on the expertise and code efficiency of the coder (that&#8217;s why i titled the post like this). If you enqueue the script with the right version WordPress will load it only once. But, if you go on and import your own one, or even worse (yes i&#8217;ve seen that) dump it within your code with a simple script tag then mayhem will erupt. But still, that is for the developer to decide and not the end user.</p>
<p>In my oppinion, wp_enqueue_script is fair enough. I don&#8217;t think there is a need to add more control since this would add a bigger burden on a platform that has to do too much already. I am sorry to sound so negative but this is how i see things as a developer right now&#8230;.. Again thanks for commenting and leaving feedback for a valuable conversation</p>
<p>@PC: The loading of the components relies solely on the browser it&#8217;s self. The only way i can see us doing it is by creating a new small JS that will run on loading completion and then start loading the other JS with Ajax. Still, i don&#8217;t see that as a solution&#8230;. Thanks for dropping by!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

