<?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>Realm of Zod &#187; css</title>
	<atom:link href="http://blog.realmofzod.com/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.realmofzod.com</link>
	<description>Programming and Technology</description>
	<lastBuildDate>Wed, 09 Jun 2010 19:59:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Dynamic paths in external javascript and stylesheets</title>
		<link>http://blog.realmofzod.com/2010/04/19/dynamic-paths-in-external-javascript-and-stylesheets/</link>
		<comments>http://blog.realmofzod.com/2010/04/19/dynamic-paths-in-external-javascript-and-stylesheets/#comments</comments>
		<pubDate>Mon, 19 Apr 2010 17:46:13 +0000</pubDate>
		<dc:creator>brandon</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://blog.realmofzod.com/?p=252</guid>
		<description><![CDATA[<!-- Easy AdSense V2.86 -->
<!-- Post[count: 1] -->
<div class="ezAdsense adsense adsense-leadin" style="text-align:center;margin:12px;"><script type="text/javascript"><!--
google_ad_client = "pub-6616898812779690";
/* 468x60, created 11/12/09 */
google_ad_slot = "0995711308";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<!-- Easy AdSense V2.86 -->

Best practices  dictate that unobtrusive javascript is king these days which means that all javascript should live in external js files instead of cluttering up the html. Simple enough, however, situations arise sometimes where you need to adapt your javascript for dynamic conditions of the application, most notably, the current base directory where your application lives. If your application is small enough you can just hard code paths to images, other scripts, or internal urls however if you are anything like me, you probably shudder at the thought of hard coding any thing. Take this use case into consideration: let's say we have an external javascript file called myscript.js which houses all of our javascript for handling click events on ajax powered links throughout the site.]]></description>
		<wfw:commentRss>http://blog.realmofzod.com/2010/04/19/dynamic-paths-in-external-javascript-and-stylesheets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Queued, Concatenated, and Gzipped Assets with the Zend Framework</title>
		<link>http://blog.realmofzod.com/2009/11/18/queued-concatenated-and-gzipped-assets-with-the-zend-framework/</link>
		<comments>http://blog.realmofzod.com/2009/11/18/queued-concatenated-and-gzipped-assets-with-the-zend-framework/#comments</comments>
		<pubDate>Wed, 18 Nov 2009 19:12:22 +0000</pubDate>
		<dc:creator>brandon</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[optimization]]></category>

		<guid isPermaLink="false">http://blog.realmofzod.com/?p=164</guid>
		<description><![CDATA[<!-- Easy AdSense V2.86 -->
<!-- Post[count: 2] -->
<div class="ezAdsense adsense adsense-leadin" style="text-align:center;margin:12px;"><script type="text/javascript"><!--
google_ad_client = "pub-6616898812779690";
/* 468x60, created 11/12/09 */
google_ad_slot = "0995711308";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<!-- Easy AdSense V2.86 -->

Linking assets to your templates and layouts is always a mine field. Every person has a different way of doing it and if it is done poorly, it can adversely affect the load time of your website, particularly if you have lots of websites. It's helpful to understand how the http protocol fetches things like stylesheets and javascript files while it's loading your page. In order to alleviate traffic for any individual server, a browser is limited to only so many concurrent requests to the same host. I do not recall what that limit is on each browser but I'm sure google does but in any case, if your site is of significant scope, chances are, you are going to need more assets than your browser can pull in at once. If you don't believe me, install the yslow extension for firefox and run it on a page with many assets and you will see what i'm talking about.]]></description>
		<wfw:commentRss>http://blog.realmofzod.com/2009/11/18/queued-concatenated-and-gzipped-assets-with-the-zend-framework/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
