<?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: JQuery script loading gotcha</title>
	<atom:link href="http://neilmiddleton.com/2010/01/20/jquery-script-loading-gotcha/feed/" rel="self" type="application/rss+xml" />
	<link>http://neilmiddleton.com/2010/01/20/jquery-script-loading-gotcha/</link>
	<description>in more than 140 characters</description>
	<lastBuildDate>Thu, 25 Feb 2010 18:39:20 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Dan G. Switzer, II</title>
		<link>http://neilmiddleton.com/2010/01/20/jquery-script-loading-gotcha/comment-page-1/#comment-82644</link>
		<dc:creator>Dan G. Switzer, II</dc:creator>
		<pubDate>Wed, 20 Jan 2010 21:55:46 +0000</pubDate>
		<guid isPermaLink="false">http://neilmiddleton.com/?p=606#comment-82644</guid>
		<description>The event you&#039;re looking for is called the window.onload event, so just use:

$(window).load();

instead of:

$(document).ready();

The window.onload will wait for all external sources to load (JS, CSS, images, etc) before firing. 

PS - You should also be able to resolve your issue if you just load the plug-in src before the script block containing your ready() code.</description>
		<content:encoded><![CDATA[<p>The event you&#8217;re looking for is called the window.onload event, so just use:</p>
<p>$(window).load();</p>
<p>instead of:</p>
<p>$(document).ready();</p>
<p>The window.onload will wait for all external sources to load (JS, CSS, images, etc) before firing. </p>
<p>PS &#8211; You should also be able to resolve your issue if you just load the plug-in src before the script block containing your ready() code.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
