<?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>Sean Hayes - professional WordPress consulting &#187; 1.4</title>
	<atom:link href="http://www.seanhayes.biz/tag/1-4/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.seanhayes.biz</link>
	<description></description>
	<lastBuildDate>Mon, 12 Jul 2010 18:55:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Integrating WordPress and Google-hosted jQuery 1.4</title>
		<link>http://www.seanhayes.biz/2010/integrating-wordpress-and-google-hosted-jquery-1-4/</link>
		<comments>http://www.seanhayes.biz/2010/integrating-wordpress-and-google-hosted-jquery-1-4/#comments</comments>
		<pubDate>Sat, 16 Jan 2010 19:15:04 +0000</pubDate>
		<dc:creator>sean</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[1.4]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.seanhayes.biz/?p=312</guid>
		<description><![CDATA[
			
				
			
		
The release of jQuery 1.4 brings many javascript improvements in performance, better handling of attributes, manipulation of DOM events and many more. Head over to the jQuery site for more details and a breakdown of the new features and improvements.
That&#8217;s great and we all like speed and flexibility improvements. Now, how would you like these [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.seanhayes.biz%2F2010%2Fintegrating-wordpress-and-google-hosted-jquery-1-4%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.seanhayes.biz%2F2010%2Fintegrating-wordpress-and-google-hosted-jquery-1-4%2F&amp;source=seanchayes&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<div id="attachment_317" class="wp-caption alignright" style="width: 160px"><a href="http://www.seanhayes.biz/wp-content/uploads/2010/01/wordpress-heart-jquery.png"><img class="size-thumbnail wp-image-317" title="wordpress-heart-jquery" src="http://www.seanhayes.biz/wp-content/uploads/2010/01/wordpress-heart-jquery-150x150.png" alt="WordPress &amp; jQuery" width="150" height="150" /></a><p class="wp-caption-text">WordPress &amp; jQuery</p></div>
<p>The release of jQuery 1.4 brings many javascript improvements in performance, better handling of attributes, manipulation of DOM events and many more. Head over to the<a rel="nofollow" title="jQuery 1.4 New features and more information" href="http://www.seanhayes.biz/goto/_jQuery/312/2" target="_blank"> jQuery</a> site for more details and a breakdown of the new features and improvements.</p>
<p>That&#8217;s great and we all like speed and flexibility improvements. Now, how would you like these in your blog from today? Well a very quick and easy modification to your theme can have you utilizing the latest version of jQuery from Google&#8217;s CDN servers. I took the code block from the source site below, inserted it in my functions.php but replaced the jQuery version number. Check out the adjusted code block below:</p>
<pre class="brush: php; highlight: [3];">
if( !is_admin()){
   wp_deregister_script('jquery');
   wp_register_script('jquery', (&quot;http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js&quot;), false, '');
   wp_enqueue_script('jquery');
}
</pre>
<p>See where I just put &#8220;..jquery/1/jquery&#8230;&#8221; &#8211; by referencing the &#8220;1&#8243; instead of &#8220;1.3.2&#8243; we will get the latest version of jQuery loaded on the site. A quick look at the source code and we can see that the inserted javascript source is indeed via Google&#8217;s CDN and by clicking on the source code we see it&#8217;s version 1.4. To use simple terms in this code we are telling WordPress to &#8220;forget&#8221; it&#8217;s usual jQuery source / script setting, then preparing WordPress for the new settings (please load jQuery from Google&#8217;s CDN) and then serving up the new information for WordPress to use.</p>
<p>A quick and easy way to give your blog / site the benefits of the recent jQuery updates and improvements. If you encounter an issue with your site or  jQuery after this change you can easily revert to the previous version (1.3.2) by either removing the code block you added or, to keep jQuery hosted by Google&#8217;s CDN, adjusting the version number from &#8220;1&#8243; to &#8220;1.3.2&#8243;. For those more familiar with jQuery coding <a rel="nofollow" title="jQuery backwards incompatible changes" href="http://www.seanhayes.biz/goto/there_s_a_list_of_backwards_incompatible_changes/312/3" target="_blank">there&#8217;s a list of &#8220;backwards incompatible&#8221; changes</a> settings on the jQuery site.</p>
<p>If you&#8217;ve changed your site over to jQuery 1.4 how did it work out? As smoothly as mine did? Leave me a comment.</p>
<p>Source: <a rel="nofollow" href="http://www.seanhayes.biz/goto/http_digwp_com_2009_06_use_google_hosted_javascript_libraries_still_the_right_way_/312/4">http://digwp.com/2009/06/use-google-hosted-javascript-libraries-still-the-right-way/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.seanhayes.biz/2010/integrating-wordpress-and-google-hosted-jquery-1-4/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using apc (user agent is rejected)
Database Caching 1/14 queries in 0.005 seconds using apc

Served from: www.seanhayes.biz @ 2010-09-09 01:46:59 -->