<?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>Mindtonic &#187; css</title>
	<atom:link href="http://blog.mindtonic.net/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.mindtonic.net</link>
	<description>Thoughts on Music and Application Development</description>
	<lastBuildDate>Fri, 30 Jul 2010 18:08:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Rails Javascript and CSS Compression</title>
		<link>http://blog.mindtonic.net/rails-javascript-and-css-compression/</link>
		<comments>http://blog.mindtonic.net/rails-javascript-and-css-compression/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 17:19:19 +0000</pubDate>
		<dc:creator>mindtonic</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Rails Plugins]]></category>
		<category><![CDATA[Ruby On Rails]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://blog.mindtonic.net/?p=91</guid>
		<description><![CDATA[To speed up site loading, there are two great plugins for &#8220;compressing&#8221; your stylesheets and javascript. The first is bundle-fu. This plugin does not actually compress the files, but rather combines all of the individual documents into one before shipping it out to the client browser. $ script/plugin install git://github.com/timcharper/bundle-fu.git And then you simply wrap [...]]]></description>
			<content:encoded><![CDATA[<p>To speed up site loading, there are two great plugins for &#8220;compressing&#8221; your stylesheets and javascript.</p>
<p>The first is <a href="http://code.google.com/p/bundle-fu/">bundle-fu</a>.  This plugin does not actually compress the files, but rather combines all of the individual documents into one before shipping it out to the client browser.</p>
<p><code>$ script/plugin install git://github.com/timcharper/bundle-fu.git</code></p>
<p>And then you simply wrap your sheet and script calls in the bundle method:</p>
<pre>
  <% bundle do %>
    ...
    <%= javascript_include_tag "prototype" %>
    <%= stylesheet_link_tag "basic.css" %>
    <%= calendar_date_select_includes "red" %>
    <script src="javascripts/application.js" type="text/javascript"></script>
    ...
  <% end %>
</pre>
<p>The Second plugin, which actually does compress all of your files, is sbecker&#8217;s <a href="http://github.com/sbecker/asset_packager/tree/master">asset_packager</a>.  This one is a lot more involved, so check out the github site for more information.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mindtonic.net/rails-javascript-and-css-compression/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
