<?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>Nico.Berlee.nl &#187; Opera</title>
	<atom:link href="http://nico.berlee.nl/tag/opera/feed/" rel="self" type="application/rss+xml" />
	<link>http://nico.berlee.nl</link>
	<description>a digital portfolio</description>
	<lastBuildDate>Sat, 21 Jan 2012 21:31:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>My improved website response with Ajax</title>
		<link>http://nico.berlee.nl/my-improved-website-response-withajax/</link>
		<comments>http://nico.berlee.nl/my-improved-website-response-withajax/#comments</comments>
		<pubDate>Sat, 19 Aug 2006 20:06:26 +0000</pubDate>
		<dc:creator>Nico</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Internet-Explorer]]></category>
		<category><![CDATA[Opera]]></category>
		<category><![CDATA[page-loading]]></category>

		<guid isPermaLink="false">http://nico.berlee.nl/my-improved-website-response-withajax/</guid>
		<description><![CDATA[I am an ajax-fan, in fact I watch every soccer match on TV. Ok, but that&#8217;s probably not what you want you are interested in . I really start wondering how to improve the response time after IÂ concluded that it would be allot of workÂ to convert this theme to a lightpress theme (I had to [...]]]></description>
			<content:encoded><![CDATA[<p>I am an ajax-fan, in fact I watch every soccer match on TV. Ok, but that&#8217;s probably not what you want you are interested in <img src='http://nico.berlee.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p>I really start wondering how to improve the response time after IÂ concluded that it would be allot of workÂ to convert this theme to a <a href="http://www.lightpress.org">lightpress</a> theme (I had to make a lot of plugins to get it to work).<span id="more-25"></span></p>
<p>So I started to think about other possibilities. The nice thing about lightpress was, it would only query the data in the database that was actually needed. So I tried to make an intelligentÂ PHP frontend that only parses parts of the page that needs to change when youÂ switch from page to pageÂ and gives it, wrapped in XML (because more than one part of the site need to change) to the JavaScript on the Client. The JavaScript on the client thenÂ parses the XML responseÂ andÂ renders itÂ in the DIVs on the website.</p>
<p>Needles to say, itÂ saves a lot of bandwidth. My average page sizeÂ did goÂ from 15kb to 5kb (uncompressed, with ZLib compression, often not more than 1kb!). This has a lot of advantages, becauseÂ it uses less processing andÂ parsing time on the server and less download and render time on the client, and it looks nicer towards the user because the page doesn&#8217;t get refreshed.Â IÂ The only overhead is the 4kb JavaScript, which is nothing compared to someÂ <a href="http://nico.berlee.nl/ajax-javascript-libraries/">other ajax JavaScript libraries.</a></p>
<p><strong>Backwards compatible</strong></p>
<p>Backwards compatibility was a key requirement for me. Since Google, MSN search, yahoo and other search spider bots don&#8217;t understand the the first thing about JavaScript or cookies. And, of course, the security nutheads (people that read security bulletins andÂ don&#8217;t mitigate)Â that disables JavaScript because they think they are safer off. Ok I am going off topic, but think of it for a second. You are much, much, much better off (security and compatibility wise) by running Firefox of Opera as aÂ limited user (right-click on the shortcut, run as),Â instead of disabling JavaScript in Internet Explorer!</p>
<p>JavaScript is responsible for turning the normal A HREF links to an ajax request in the background. This way it&#8217;s fully backwards compatible&#8230; Even if JavaScript works and even if the ajax request fails, It will switch to the old A HREF link.</p>
]]></content:encoded>
			<wfw:commentRss>http://nico.berlee.nl/my-improved-website-response-withajax/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

