<?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>Kyle Rush &#187; RAM</title>
	<atom:link href="http://kylerush.net/category/ram/feed/" rel="self" type="application/rss+xml" />
	<link>http://kylerush.net</link>
	<description>Blog &#38; Portfolio of Kyle Rush</description>
	<lastBuildDate>Wed, 04 May 2011 14:16:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>CSS Tiled Background Images and RAM</title>
		<link>http://kylerush.net/ram/css-tiled-background-images-ram/</link>
		<comments>http://kylerush.net/ram/css-tiled-background-images-ram/#comments</comments>
		<pubDate>Mon, 06 Oct 2008 15:41:39 +0000</pubDate>
		<dc:creator>Kyle Rush</dc:creator>
				<category><![CDATA[RAM]]></category>
		<category><![CDATA[Background Image]]></category>
		<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Chrome]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Firefox 3]]></category>
		<category><![CDATA[Tiled]]></category>

		<guid isPermaLink="false">http://local.kylerush.net/?p=106</guid>
		<description><![CDATA[I was developing a website the other day that uses several tiled background images defined in its global style sheet and started wondering how that was affecting the visitors RAM. I started out using very small, 5 x 5 pixel semi-transparent .png images as my tile, but started to wonder if it takes more RAM [...]]]></description>
			<content:encoded><![CDATA[<p>I was developing a website the other day that uses several tiled background images defined in its global style sheet and started wondering how that was affecting the visitors RAM. I started out using very small, 5 x 5 pixel semi-transparent .png images as my tile, but started to wonder if it takes more RAM for the browser to tile that tiny image rather than a larger image. It seemed to me that the more the browser has to tile the more RAM it will require. Well, I put it to a test. I created two background tiles of the same, non-web safe color&#8211;one 5X5 pixels and the other 100X100 pixels. I defined the tiles as a style in the HTML document itself. Then I created another HTML file and defined a background color with CSS also inside the document.</p>
<p>Below is a table of my findings. I ran my computer in safe mode and started all the browsers without extensions. The column &#8216;Default&#8217; is the RAM the browser used with no page open. The column &#8216;No Image&#8217; is the HTML document with the background color defined by a hexadecimal color in the CSS and not a tiled image. The last column (&#8216;Spread&#8217;) is the difference between the two background tiles (5X5 RAM &#8211; 100X100 RAM = ?). So, positive numbers in the spread mean that the larger tile image used <em>less</em> RAM, while negative numbers mean that the larger tile used <em>more</em> ram.</p>
<table border="0" summary="A demonstration of how much RAM CSS tiled background images use.">
<caption>CSS Tiled Background Images RAM Usage</caption>
<thead>
<tr class="odd">
<td class="column1"></td>
<th scope="col">Default</th>
<th scope="col">5X5</th>
<th scope="col">100X100</th>
<th scope="col">No Image</th>
<th scope="col">Spread</th>
</tr>
</thead>
<tfoot>
<tr class="odd">
<td class="column1"></td>
<th scope="col"><strong>110,816K</strong></th>
<th scope="col"><strong>126,596K</strong></th>
<th scope="col"><strong>126,356K</strong></th>
<th scope="col"><strong>120,232</strong></th>
<th scope="col"><strong>+240K</strong></th>
</tr>
</tfoot>
<tbody>
<tr>
<th class="column1" scope="row">Firefox 3.0.3</th>
<td>32,128K</td>
<td>34,976K</td>
<td>34,464K</td>
<td>34,788K</td>
<td>+330K</td>
</tr>
<tr class="odd">
<th class="column1" scope="row">IE 7.0</th>
<td>18,572K</td>
<td>20,440K</td>
<td>20,540K</td>
<td>20,052K</td>
<td>-100K</td>
</tr>
<tr>
<th class="column1" scope="row">Opera 9.52</th>
<td>28,940K</td>
<td>32,736K</td>
<td>32,760K</td>
<td>27,988K</td>
<td>-24K</td>
</tr>
<tr class="odd">
<th class="column1" scope="row">Safari 3.1.2</th>
<td>31,176K</td>
<td>38,444K</td>
<td>38,592K</td>
<td>37,404K</td>
<td>+148K</td>
</tr>
</tbody>
</table>
<p><strong>Results</strong></p>
<p>There is a very good deal of variation across the browsers. Firefox and Safari both use less RAM when tiling larger images while the opposite is true for Internet Explorer and Safari. Overall, we can see that the larger tile uses less RAM. An interesting part of the experiment is the &#8216;No Image&#8217; column data. As you can see, defining a background color using CSS uses a significantly lower amount of RAM relative to the tiled images. So, if you care about these minor findings, I&#8217;d say do everything you can to find a hexadecimal number you can work with for a background image. If you can&#8217;t, use as larger image for your background.</p>
]]></content:encoded>
			<wfw:commentRss>http://kylerush.net/ram/css-tiled-background-images-ram/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

