<?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; minify</title>
	<atom:link href="http://lesterchan.net/wordpress/tag/minify/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 II</title>
		<link>http://lesterchan.net/wordpress/2009/01/19/javascript-in-my-plugins-ii/</link>
		<comments>http://lesterchan.net/wordpress/2009/01/19/javascript-in-my-plugins-ii/#comments</comments>
		<pubDate>Mon, 19 Jan 2009 11:11:24 +0000</pubDate>
		<dc:creator>Lester Chan</dc:creator>
				<category><![CDATA[Site]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WP-EMail]]></category>
		<category><![CDATA[WP-Polls]]></category>
		<category><![CDATA[WP-PostRatings]]></category>
		<category><![CDATA[WP-ServerInfo]]></category>
		<category><![CDATA[WP-UserOnline]]></category>
		<category><![CDATA[2.8]]></category>
		<category><![CDATA[footer]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[minify]]></category>

		<guid isPermaLink="false">http://lesterchan.net/wordpress/?p=241</guid>
		<description><![CDATA[I have completed the &#8220;update&#8221; process to my 5 of my plugins (WP-Polls, WP-PostRatings, WP-Email, WP-ServerInfo and WP-UserOnline) which use JavaScript. WP-Polls and WP-PostRatings uses JavaScript on the frontend as well as the backend WP-Email and WP-UserOnline uses JavaScript on &#8230; <a href="http://lesterchan.net/wordpress/2009/01/19/javascript-in-my-plugins-ii/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I have completed the &#8220;update&#8221; process to my 5 of my plugins (WP-Polls, WP-PostRatings, WP-Email, WP-ServerInfo and WP-UserOnline) which use JavaScript.</p>
<ul>
<li>WP-Polls and WP-PostRatings uses JavaScript on the frontend as well as the backend</li>
<li>WP-Email and WP-UserOnline uses JavaScript on the frontend only</li>
<li>WP-ServerInfo uses JavaScript on the backend only</li>
</ul>
<p>Unfortunately the changes require at least WordPress 2.8 onwards to make use of the JavaScript enhancements in WordPress 2.8. I have updated this site to WordPress 2.8 Bleeding Edge aka WordPress 2.8 Nightly in order to test the JavaScript changes on a live site.</p>
<p>If you view the HTML source of this page, you will notice that only the CSS files get loaded in the header and the JavaScript gets loaded in the footer.</p>
<p>If you are running WordPress 2.8 bleeding edge, perhaps you can help me test out the plugins. Thanks in advanced <img src='http://cdn.lesterchan.net/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
Note: There is a file embedded within this post, please visit this post to download the file.
]]></content:encoded>
			<wfw:commentRss>http://lesterchan.net/wordpress/2009/01/19/javascript-in-my-plugins-ii/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<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/14 queries in 0.014 seconds using memcached
Object Caching 362/394 objects using xcache
Content Delivery Network via cdn.lesterchan.net

Served from: lesterchan.net @ 2012-02-12 07:19:53 -->
