<?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>spritegen &#8211; stoimen&#039;s web log</title>
	<atom:link href="/tag/spritegen/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>on web development</description>
	<lastBuildDate>Tue, 13 Feb 2018 08:18:15 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.0.3</generator>
	<item>
		<title>sprite usage and website optimization</title>
		<link>/2009/06/21/sprite-usage-and-website-optimization/</link>
		<comments>/2009/06/21/sprite-usage-and-website-optimization/#comments</comments>
		<pubDate>Sun, 21 Jun 2009 12:49:57 +0000</pubDate>
		<dc:creator><![CDATA[Stoimen]]></dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[micro tutorial]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[optimization]]></category>
		<category><![CDATA[sprite]]></category>
		<category><![CDATA[spritegen]]></category>

		<guid isPermaLink="false">/?p=617</guid>
		<description><![CDATA[What&#8217;s a sprite? When a website is developed common scenario is to put all of your images used in the UI in a .css file. Yes some did not use it, which I think is too much old school, but however maybe 99.9% did make it that way. In fact in nowadays sites we&#8217;ve more &#8230; <a href="/2009/06/21/sprite-usage-and-website-optimization/" class="more-link">Continue reading <span class="screen-reader-text">sprite usage and website optimization</span> <span class="meta-nav">&#8594;</span></a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="/2010/02/05/css-sprites-go-beyond-the-limits-with-base64/" rel="bookmark" title="CSS sprites. Go beyond the limits with base64!">CSS sprites. Go beyond the limits with base64! </a></li>
<li><a href="/2009/10/06/css-sprites-common-mistakes/" rel="bookmark" title="CSS Sprites &#8211; common mistakes">CSS Sprites &#8211; common mistakes </a></li>
<li><a href="/2010/01/13/optimizing-the-web-start-with-the-images/" rel="bookmark" title="Optimizing the web. Start with the images!">Optimizing the web. Start with the images! </a></li>
<li><a href="/2011/01/07/more-on-css-optimization/" rel="bookmark" title="More on CSS Optimization">More on CSS Optimization </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<h2>What&#8217;s a sprite?</h2>
<p>When a website is developed common scenario is to put all of your images used in the UI in a .css file. Yes some did not use it, which I think is too much old school, but however maybe 99.9% did make it that way. In fact in nowadays sites we&#8217;ve more and more rounded corners, more alpha in our images. But what&#8217;s a sprite at all.</p>
<p>Well imagine you&#8217;ve 20 of these images requested in you .css file, if we suggest we&#8217;ve only one stylesheet file. Than when your page is rendered into a browser there must be 20 requests to the server for those images. And so many requests may really slow down your page load. Using only one image with correct</p>
<blockquote>
<pre>background-image
background-position</pre>
</blockquote>
<p>properties in you css make your site load really fast.<span id="more-617"></span></p>
<h2>What&#8217;s website optimization?</h2>
<p>Most of the beginners think that a website is always fast. That&#8217;s true until you start making really big sites. Like Youtube, Vimeo, Yahoo, etc. Take a look at their css files and the background images in them. Yes, they are using sprites &#8211; those big images containing all of the background needed for the page. And than the page load may become much faster.</p>
<h2>How a sprite can change my load time?</h2>
<p>In my case the site loaded for 4 to 5 seconds on a normal speed connection. Than only by making a sprite from our 10 images in the background, it became between 3 and 4 sec. That&#8217;s 20%, and 1 second is not so bad in todays&#8217; web space.</p>
<h2>How to make it?</h2>
<p>You must make your background images as one sprite. At all that may become good practice for the future where for sure there will be only that way. OK, but how I can make it. Well you can generate it online simply by using something like <a title="Sprite Generator" href="http://spritegen.website-performance.org/" target="_blank">http://spritegen.website-performance.org/</a> or you can make it alone with some image manipulation programe as GIMP or Adobe Photoshop, it&#8217;s up to you.</p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="/2010/02/05/css-sprites-go-beyond-the-limits-with-base64/" rel="bookmark" title="CSS sprites. Go beyond the limits with base64!">CSS sprites. Go beyond the limits with base64! </a></li>
<li><a href="/2009/10/06/css-sprites-common-mistakes/" rel="bookmark" title="CSS Sprites &#8211; common mistakes">CSS Sprites &#8211; common mistakes </a></li>
<li><a href="/2010/01/13/optimizing-the-web-start-with-the-images/" rel="bookmark" title="Optimizing the web. Start with the images!">Optimizing the web. Start with the images! </a></li>
<li><a href="/2011/01/07/more-on-css-optimization/" rel="bookmark" title="More on CSS Optimization">More on CSS Optimization </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>/2009/06/21/sprite-usage-and-website-optimization/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
	</channel>
</rss>
