<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Arpia.be &#187; Wordpress</title>
	<atom:link href="http://www.arpia.be/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.arpia.be</link>
	<description>Website of Peter Craddock, novel writer and composer</description>
	<lastBuildDate>Wed, 14 Dec 2011 13:04:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Speeding things up</title>
		<link>http://www.arpia.be/2008/12/speeding-things-up/</link>
		<comments>http://www.arpia.be/2008/12/speeding-things-up/#comments</comments>
		<pubDate>Fri, 05 Dec 2008 16:47:34 +0000</pubDate>
		<dc:creator>Peter Craddock</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Webdesign]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.arpia.be/?p=103</guid>
		<description><![CDATA[I decided to take a look at possible optimisations for this website, in order to make it load faster, and so on. I&#8217;d already done a bunch of this some time ago, but I rediscovered the Firebug plug-in for Firefox, and in particular its YSlow extension.
YSlow is a set of guidelines that Yahoo! published a [...]]]></description>
			<content:encoded><![CDATA[<p>I decided to take a look at possible optimisations for this website, in order to make it load faster, and so on. I&#8217;d already done a bunch of this some time ago, but I rediscovered the Firebug plug-in for Firefox, and in particular its YSlow extension.</p>
<p>YSlow is a set of guidelines that Yahoo! published a while ago to help web-designers in their quest for the optimal code, and WordPress hasn&#8217;t ever been very YSlow-friendly.</p>
<p><span id="more-103"></span></p>
<p>So, what to do to clean things up?</p>
<p>The first step involved trying to see what I could change on my own (CSS &amp; HTML validation, compressing CSS and Javascript files, removing unnecessary code, downloading &amp; configuring the &#8220;Super Cache&#8221; plug-in, &#8230;). Fortunately for me, I&#8217;d already done that kind of stuff. So now I could sit back and rely on what others had found out!</p>
<p>After a few searches of the web, I stumbled upon <a title="Easy steps to speed-up your WordPress blog" href="http://www.cloudfour.com/77/easy-steps-to-speedup-your-wordpress-blog/">this post</a>, which happens to contain most of the information I needed to get this done.<br />
Steps 2 to 4 were by far the most valuable to me, because I&#8217;d found similar results, but none that were this complete.</p>
<p>Next, I decided that the &#8220;WP-Polls&#8221; plug-in needed some work. I only downloaded and used that plug-in for a post concerning <a href="www.arpia.be/2008/05/googles-new-favicon/">Google&#8217;s then-new favicon</a>.<br />
[For some reason, though, it seemed no longer to work (perhaps because of the latest version of WordPress, no idea) - this, however, has no bearing on the steps I shall now mention.]</p>
<p>See, many WordPress plug-ins that add features to posts are only used within posts, and sometimes, you really don&#8217;t need them on many posts. The solution was simple: change a few lines of code to make the plug-in only be active for these posts, i.e. make sure that the extra CSS/Javascript/&#8230; files aren&#8217;t called up for all the other posts &amp; pages.</p>
<p>If you&#8217;re somewhat comfortable with code, here are a few steps you could follow:<br />
- edit the main PHP file of the plug-in to add an action to &#8220;wp_extra&#8221; instead of &#8220;wp_head&#8221; (do a search for &#8220;wp_head&#8221; for that)<br />
- edit the &#8220;wp-content/includes/general-template.php&#8221; file to add the following:</p>
<pre>function wp_extra() {
do_action('wp_extra');
}</pre>
<p>- add the following to the template&#8217;s &#8220;footer.php&#8221; file (with &#8220;postnumber&#8221; being the relevant post&#8217;s ID):</p>
<pre>
< ? php if (is_single('postnumber')) { ?>
< ? php wp_extra(); ?>
< ? php } ?>
</pre>
<p>(for some reason, I couldn&#8217;t post this as &#8220;< ? p h p" without the spaces, but just remove those two extra spaces per line)<br />
If you want to do that for several posts, just change the "is_single('postnumber')" into "is_single(array('postnumber1', 'postnumber2', 'postnumber3'))" (and so on).</p>
<p>Theoretically, this <em>should</em> work. At least, it worked for me.</p>
<p>Feels snappier!</p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://www.arpia.be/2008/12/speeding-things-up/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

