<?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>Lester Chan's WordPress Plugins &#187; packed</title>
	<atom:link href="http://lesterchan.net/wordpress/tag/packed/feed/" rel="self" type="application/rss+xml" />
	<link>http://lesterchan.net/wordpress</link>
	<description>Lester Chan's WordPress Plugins Development Blog</description>
	<lastBuildDate>Sat, 07 Jan 2012 03:01:32 +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>JavaScript In My Plugins</title>
		<link>http://lesterchan.net/wordpress/2009/01/15/javascript-in-my-plugins/</link>
		<comments>http://lesterchan.net/wordpress/2009/01/15/javascript-in-my-plugins/#comments</comments>
		<pubDate>Wed, 14 Jan 2009 17:50:53 +0000</pubDate>
		<dc:creator>Lester Chan</dc:creator>
				<category><![CDATA[Plugins]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WP-PostRatings]]></category>
		<category><![CDATA[footer]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[minify]]></category>
		<category><![CDATA[packed]]></category>

		<guid isPermaLink="false">http://lesterchan.net/wordpress/?p=240</guid>
		<description><![CDATA[Only 5 of my plugins (WP-Polls, WP-PostRatings, WP-Email, WP-ServerInfo and WP-UserOnline) use JavaScript. The JavaScripts are packed using Dean Edward&#8217;s Packer and the only framework use just for AJAX is TW-Sack or Simple AJAX Code-Kit (SACK). TW-Sack is extremely lightweight &#8230; <a href="http://lesterchan.net/wordpress/2009/01/15/javascript-in-my-plugins/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Only 5 of my plugins (WP-Polls, WP-PostRatings, WP-Email, WP-ServerInfo and WP-UserOnline) use JavaScript. The JavaScripts are packed using <a href="http://dean.edwards.name/packer/">Dean Edward&#8217;s Packer</a> and the only framework use just for AJAX is <a href="http://www.twilightuniverse.com/projects/sack/">TW-Sack or Simple AJAX Code-Kit (SACK)</a>. TW-Sack is extremely lightweight and easy to use but unfortunately, it can be used only for AJAX purposes.  The reason I used TW-Sack instead of jQuery is simple, at the time I created my plugin, jQuery does not exists yet and when jQuery becomes popular the reason why I didn&#8217;t upgrade it was because I was lazy. As the saying goes, &#8220;If it ain&#8217;t broke, don&#8217;t fix it&#8221;.  Recently there is some buzz within the WordPress Development Team regarding WordPress&#8217;s JavaScript Usage. Andrew Ozz has written two articles on it in the <a href="http://wpdevel.wordpress.com/">WordPress Development Updates</a> blog entitled <a href="http://wpdevel.wordpress.com/2008/12/27/optimizing-script-loading/">Optimizing script loading</a>, <a href="http://wpdevel.wordpress.com/2009/01/07/optimizing-script-loading-part-2/">Optimizing script loading part 2</a> and <a href="http://wpdevel.wordpress.com/2009/01/15/optimizing-script-loading-implementation/">Optimizing script loading, implementation</a>.  With the upcoming WordPress 2.8 will feature some heavy JavaScript changes, I told myself to make use of this chance to totally revamped the JavaScripts in my plugins.  Here are the changes that will be made:</p>
<ul>
<li>Minified JavaScript instead of packing them</li>
<li>Replaced TW-Sack with jQuery</li>
<li>Move JavaScript to the footer</li>
<li>Use wp_localize_script() for JavaScript text translation</li>
<li>javascript-js.js will now contain the minified code for normal usage</li>
<li>javascript-js.dev.js will now contain the unminified code for development purposes</li>
</ul>
<p>I have already done it for WP-PostRatings and it is now running live on this site. Next, I will be doing WP-UserOnline, followed by WP-Email and lastly WP-Polls as it is more complex.</p>
]]></content:encoded>
			<wfw:commentRss>http://lesterchan.net/wordpress/2009/01/15/javascript-in-my-plugins/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using memcached
Database Caching 1/5 queries in 0.004 seconds using memcached
Object Caching 298/298 objects using xcache
Content Delivery Network via cdn.lesterchan.net

Served from: lesterchan.net @ 2012-02-12 07:20:31 -->
