<?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>Tech from Hel &#187; javascript</title>
	<atom:link href="http://www.techfromhel.com/category/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.techfromhel.com</link>
	<description>Helene&#039;s ramblings on Wordpress, jQuery and other web technologies.</description>
	<lastBuildDate>Thu, 08 Apr 2010 19:40:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Sleeping with Javascript</title>
		<link>http://www.techfromhel.com/2009/06/sleeping-with-javascript/</link>
		<comments>http://www.techfromhel.com/2009/06/sleeping-with-javascript/#comments</comments>
		<pubDate>Sun, 07 Jun 2009 19:00:10 +0000</pubDate>
		<dc:creator>helene</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[sleep]]></category>

		<guid isPermaLink="false">http://www.techfromhel.com/2009/06/sleeping-with-javascript/</guid>
		<description><![CDATA[<p>When I went looking for a built-in "sleep()" function in Javascript, I quickly learned that it does not exist. This is surprising considering that "sleep()" is in all other languages that I have used. To get around this javascript shortcoming, I decided to create my own sleep function. The result is a function that loops internally until the number of seconds passed is greater than the argument value, "naptime". </p>
<p>Initial tests of "sleep()" were successful, however, I soon discovered that most browsers will interrupt "sleep()" and show a "Slow/Busy script" dialog message whenever the "naptime" argument is greater than 10 seconds (7 seconds in IE). Trying to work around this problem was too much effort, so I left the script as is. If you use this function, I recommend a "naptime" of less than 10 seconds so your site visitors won't encounter this "slow script" dialog message.</p>
<p>Below are some examples of "sleep()" in javascript. Just click on a link below to start sleeping for the preset amount of seconds shown.</p>
<a href="/2009/06/sleeping-with-javascript/">Read more...</a>]]></description>
		<wfw:commentRss>http://www.techfromhel.com/2009/06/sleeping-with-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
