<?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: JavaScript GZIP Compression in WordPress: What&#8217;s Possible and what Hurts</title>
	<atom:link href="http://www.cloudfour.com/javascript-gzip-compression-in-wordpress-whats-possible-and-what-hurts/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cloudfour.com/javascript-gzip-compression-in-wordpress-whats-possible-and-what-hurts/</link>
	<description>Expert Web and Mobile Design, Development and Strategy</description>
	<lastBuildDate>Thu, 02 Feb 2012 22:58:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Udegbunam Chukwudi &#124; Make Money Online</title>
		<link>http://www.cloudfour.com/javascript-gzip-compression-in-wordpress-whats-possible-and-what-hurts/comment-page-1/#comment-14843</link>
		<dc:creator>Udegbunam Chukwudi &#124; Make Money Online</dc:creator>
		<pubDate>Wed, 23 Jun 2010 13:08:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.cloudfour.com/?p=609#comment-14843</guid>
		<description>One more please. Is there a way of setting a far future expiry header for the compressed files?</description>
		<content:encoded><![CDATA[<p>One more please. Is there a way of setting a far future expiry header for the compressed files?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Udegbunam Chukwudi &#124; Make Money Online</title>
		<link>http://www.cloudfour.com/javascript-gzip-compression-in-wordpress-whats-possible-and-what-hurts/comment-page-1/#comment-14842</link>
		<dc:creator>Udegbunam Chukwudi &#124; Make Money Online</dc:creator>
		<pubDate>Wed, 23 Jun 2010 12:57:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.cloudfour.com/?p=609#comment-14842</guid>
		<description>Hi,

I just applied the hack to my blog and it works just fine after I enqueued Jquery and HoverIntent.
Thanks a million ;-)

One question please, what if my visitor&#039;s browser doesn&#039;t support gzip, what happens? I hope the site would load normally?

P.S: Do you mind installing the subscribe to comments plug-in so I can keep up with future replies and comments on this post. Thanks</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I just applied the hack to my blog and it works just fine after I enqueued Jquery and HoverIntent.<br />
Thanks a million <img src='http://www.cloudfour.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>One question please, what if my visitor&#8217;s browser doesn&#8217;t support gzip, what happens? I hope the site would load normally?</p>
<p>P.S: Do you mind installing the subscribe to comments plug-in so I can keep up with future replies and comments on this post. Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Keith Tysinger</title>
		<link>http://www.cloudfour.com/javascript-gzip-compression-in-wordpress-whats-possible-and-what-hurts/comment-page-1/#comment-12804</link>
		<dc:creator>Keith Tysinger</dc:creator>
		<pubDate>Mon, 01 Mar 2010 02:56:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.cloudfour.com/?p=609#comment-12804</guid>
		<description>I realize that is article is about compressing js, but you may want to include define(&#039;COMPRESS_CSS&#039;, true); also.  
Following is what I have in my template&#039;s functions.php file. I am using the google CDN for loading jquery. Google automatically adds compression and the file may not have to be loaded twice if it is already cached on the client&#039;s browser. 
 
I guess some compression is better than none but I am disappointed that full js compressions isn&#039;t included in WP at this time. 
 
 
function my_init() { 
if (!is_admin()) { 
// comment out the next two lines to load the local copy of jQuery 
wp_deregister_script(&#039;jquery&#039;); 
wp_register_script(&#039;jquery&#039;, &#039;http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js&#039;, false, &#039;1.3.2&#039;); 
wp_enqueue_script(&#039;jquery&#039;); 
 
wp_deregister_script(&#039;jquery-ui-core&#039;); 
wp_register_script(&#039;jquery-ui-core&#039;, &#039;http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js&#039;, false, &#039;1.7.2&#039;); 
wp_enqueue_script(&#039;jquery-ui-core&#039;); 
} 
 
    global $compress_scripts, $concatenate_scripts; 
    $compress_scripts = 1; 
    $concatenate_scripts = 1; 
    define(&#039;ENFORCE_GZIP&#039;, true);  
    define(&#039;COMPRESS_CSS&#039;, true); 
 
} 
add_action(&#039;init&#039;, &#039;my_init&#039;); </description>
		<content:encoded><![CDATA[<p>I realize that is article is about compressing js, but you may want to include define(&#039;COMPRESS_CSS&#039;, true); also.<br />
Following is what I have in my template&#039;s functions.php file. I am using the google CDN for loading jquery. Google automatically adds compression and the file may not have to be loaded twice if it is already cached on the client&#039;s browser. </p>
<p>I guess some compression is better than none but I am disappointed that full js compressions isn&#039;t included in WP at this time. </p>
<p>function my_init() {<br />
if (!is_admin()) {<br />
// comment out the next two lines to load the local copy of jQuery<br />
wp_deregister_script(&#039;jquery&#039;);<br />
wp_register_script(&#039;jquery&#039;, &#039;<a href="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js&#039;" rel="nofollow">http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js&#039;</a>, false, &#039;1.3.2&#039;);<br />
wp_enqueue_script(&#039;jquery&#039;); </p>
<p>wp_deregister_script(&#039;jquery-ui-core&#039;);<br />
wp_register_script(&#039;jquery-ui-core&#039;, &#039;<a href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js&#039;" rel="nofollow">http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js&#039;</a>, false, &#039;1.7.2&#039;);<br />
wp_enqueue_script(&#039;jquery-ui-core&#039;);<br />
} </p>
<p>    global $compress_scripts, $concatenate_scripts;<br />
    $compress_scripts = 1;<br />
    $concatenate_scripts = 1;<br />
    define(&#039;ENFORCE_GZIP&#039;, true);<br />
    define(&#039;COMPRESS_CSS&#039;, true); </p>
<p>}<br />
add_action(&#039;init&#039;, &#039;my_init&#039;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kim</title>
		<link>http://www.cloudfour.com/javascript-gzip-compression-in-wordpress-whats-possible-and-what-hurts/comment-page-1/#comment-12747</link>
		<dc:creator>Kim</dc:creator>
		<pubDate>Sat, 27 Feb 2010 18:19:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.cloudfour.com/?p=609#comment-12747</guid>
		<description>Hey, I&#039;ve been digging into this &quot;solution&quot; also.  
 
I think it indeed, comes down to the fact that all compressable javascripts should be in a &quot;default&quot; wordpress scripts directory. 
 
I managed to get it almost working, but my compressed javascripts did not show up in load-scripts.php, although they were mentioned in the GET parameter. 
 
If I manage to get it working, I&#039;ll let you know! Testing will always be on &lt;a href=&quot;http://www.wenskaartenshop.be,&quot; target=&quot;_blank&quot;&gt;www.wenskaartenshop.be,&lt;/a&gt; which is a live size and receives 1000 daily visitors. 
 
Thanks for your opinion on this issue. 
Kind regards, 
Kim </description>
		<content:encoded><![CDATA[<p>Hey, I&#039;ve been digging into this &quot;solution&quot; also.  </p>
<p>I think it indeed, comes down to the fact that all compressable javascripts should be in a &quot;default&quot; wordpress scripts directory. </p>
<p>I managed to get it almost working, but my compressed javascripts did not show up in load-scripts.php, although they were mentioned in the GET parameter. </p>
<p>If I manage to get it working, I&#039;ll let you know! Testing will always be on <a href="http://www.wenskaartenshop.be," target="_blank"></a><a href="http://www.wenskaartenshop.be" rel="nofollow">http://www.wenskaartenshop.be</a>, which is a live size and receives 1000 daily visitors. </p>
<p>Thanks for your opinion on this issue.<br />
Kind regards,<br />
Kim</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew</title>
		<link>http://www.cloudfour.com/javascript-gzip-compression-in-wordpress-whats-possible-and-what-hurts/comment-page-1/#comment-7252</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Sun, 04 Oct 2009 06:33:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.cloudfour.com/?p=609#comment-7252</guid>
		<description>Lyza, I can understand it&#039;s frustrating that WordPress 2.8 doesn&#039;t have an option to concatenate and compress scripts and stylesheets added by plugins but consider how that would work. To add these scripts the plugins will have to run, to run the plugins, WordPress has to run. So on each page load WordPress will have to run 3-4 times: once to output the page, second time for the CSS, third and fourth for the head and footer scripts. 
 
Apart form the extra server load (we are trying to save some energy too) that would be quite inefficient. It is possible to save a pre-made file containing the needed scripts already concatenated and compressed then include that file on the page and any other pages that load exactly the same scripts. However this would require certain server configuration, filesystem access, etc. (yes, that&#039;s the same way WP Super Cache and some other plugins work). I&#039;m working on such plugin, perhaps drop me a line if you would like to test it. </description>
		<content:encoded><![CDATA[<p>Lyza, I can understand it&#039;s frustrating that WordPress 2.8 doesn&#039;t have an option to concatenate and compress scripts and stylesheets added by plugins but consider how that would work. To add these scripts the plugins will have to run, to run the plugins, WordPress has to run. So on each page load WordPress will have to run 3-4 times: once to output the page, second time for the CSS, third and fourth for the head and footer scripts. </p>
<p>Apart form the extra server load (we are trying to save some energy too) that would be quite inefficient. It is possible to save a pre-made file containing the needed scripts already concatenated and compressed then include that file on the page and any other pages that load exactly the same scripts. However this would require certain server configuration, filesystem access, etc. (yes, that&#039;s the same way WP Super Cache and some other plugins work). I&#039;m working on such plugin, perhaps drop me a line if you would like to test it.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

