<?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>Free Web Resources - Web Resources Depot &#187; Compression</title>
	<atom:link href="http://www.webresourcesdepot.com/tag/compression/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webresourcesdepot.com</link>
	<description>Free Web Resources</description>
	<lastBuildDate>Sun, 12 Feb 2012 13:06:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>Tips To Improve Website Speed</title>
		<link>http://www.webresourcesdepot.com/tips-to-improve-website-speed/</link>
		<comments>http://www.webresourcesdepot.com/tips-to-improve-website-speed/#comments</comments>
		<pubDate>Tue, 23 Sep 2008 05:02:00 +0000</pubDate>
		<dc:creator>Umut M.</dc:creator>
				<category><![CDATA[Extras]]></category>
		<category><![CDATA[Info]]></category>
		<category><![CDATA[No License]]></category>
		<category><![CDATA[Compression]]></category>
		<category><![CDATA[Hosting]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Server]]></category>

		<guid isPermaLink="false">http://www.webresourcesdepot.com/?p=511</guid>
		<description><![CDATA[<p><a href='http://rss.buysellads.com/click.php?z=1259982&k=ed230295611f656daf3115e6d682ca7d&a=511&c=10264' target='_blank'><img src='http://rss.buysellads.com/img.php?z=1259982&k=ed230295611f656daf3115e6d682ca7d&a=511&c=10264' border='0' alt='' /></a></p><p><a href='http://buysellads.com/buy/sitedetails/pubkey/ed230295611f656daf3115e6d682ca7d/zone/1259982' target='_blank'>Advertise here with BSA</a></p><br />Info: Every user / developer has different experiences. Any more tips that you share in the comments will be appreciated. &#34;Why is my website slow?&#34; is a popular question. And it is a vital problem for a website. Faster the website, happier &#38; more the visitors. That&#39;s a well-known fact. There are several factors that [...]]]></description>
			<content:encoded><![CDATA[<p><a href='http://rss.buysellads.com/click.php?z=1259982&k=ed230295611f656daf3115e6d682ca7d&a=511&c=28560' target='_blank'><img src='http://rss.buysellads.com/img.php?z=1259982&k=ed230295611f656daf3115e6d682ca7d&a=511&c=28560' border='0' alt='' /></a></p><p><a href='http://buysellads.com/buy/sitedetails/pubkey/ed230295611f656daf3115e6d682ca7d/zone/1259982' target='_blank'>Advertise here with BSA</a></p><br /><blockquote>
<p><span><strong>Info:</strong> Every user / developer has different experiences. Any more tips that you share in the comments will be appreciated.</span></p>
</blockquote>
<p>&quot;<strong>Why is my website slow?</strong>&quot; is a popular question. And it is a vital problem for a website.</p>
<p>Faster the website, happier &amp; more the visitors. That&#39;s a well-known fact.</p>
<p>There are several factors that may slow a website. In general, all of them can be solved. This just depends on how much effort you can spend on it.</p>
<h3>How much time do you have?</h3>
<p>You may not have enough time to spend on speeding up your website. Depending on your free time, you may choose the steps to apply like mentioned below:</p>
<ul>
<li><strong>I have very limited time:</strong> Apply step-1, step-2, step-4 &amp; step-5 (only the compression parts) and step-6.</li>
<li><strong>I have some time:</strong> Apply all of them except step-3 &amp; step-8.</li>
<li><strong>I rule the time:</strong> Go with them all.</li>
</ul>
<p><img alt="Improve Website Speed" height="152" src="http://www.webresourcesdepot.com/wp-content/uploads/image/improve-website-speed.jpg" width="480" /></p>
<p>Most of the tips are the ones that you probably know. So, you can use the list as a checklist (which it normally is in my &quot;customer notes sheet&quot; : ) ).</p>
<p>Here are the tips:</p>
<h3>1. Get A Fast &amp; Less-Loaded Web Server</h3>
<p>This is a must. Whatever you do to make your website faster, if it is served slow, there&#39;s nothing to do.</p>
<p>Make sure that the server your website is hosted has low ping values &amp; it is not over-loaded. Specially if you&#39;ve a database and/or using dynamic files (like asp, asp.net, php, ruby..) server over-load can kill the performance.</p>
<p>If you&#39;ve a simple website with few visitors then shared hosting is ok. For a website getting popular, think of a VPS with guaranteed RAM &amp; CPU usage. If the website is already popular, a dedicated server will be the best performing one.</p>
<h3>2. Know When To Use GIF, JPG &amp; PNG Files.&nbsp;</h3>
<p>Playing with the quality of images will dramatically lower the sizes of them while they will still be looking good.</p>
<p><strong>GIF</strong> is suitable for images with few colors like logos, text &amp; line art. When saving a GIF file, make sure you use a small color pallette (<a href="http://webstyleguide.com/graphics/gifs.html" target="_blank">learn more</a>).</p>
<p><strong>JPG</strong> is good for images with lots of colors &amp; details like photographs. Decrease the quality of a JPG image before saving. It will still look good for a web image (<a href="http://webstyleguide.com/graphics/jpegs.html" target="_blank">learn more</a>).</p>
<p><strong>PNG</strong>, a format specially for websites, has great quality &#8211; both transparent &amp; non-transparent &#8211; is specially functional when you&#39;re in need of quality transparent images. Don&#39;t forget that IE6 has problems in displaying them (<a href="http://webstyleguide.com/graphics/pngs.html" target="_blank">learn more</a>).</p>
<h3>3. Use XHTML &#8211; No Tables</h3>
<p>This is easy to tell but may be harder to implement for anyone that has few experience with XHTML.</p>
<p>The thing is, tables are rendered slower than DIVs by browsers. You can do more with less code &amp; no need to say it is much better to be compatible with any browser (including mobile browsers), in means of SEO, etc..</p>
<p><strong>Update:</strong> There may be cases when using tables are much more logical like &quot;tabular data&quot;. You may have to code a lot for creating the look of a simple 5 columned table. Don&#39;t do that &amp; use tables when needed.</p>
<p>What is tried to be mentioned here is, use XHTML rather than tables in general. But don&#39;t try to draw images with XHTML.</p>
<h3>4. Use CSS Smartly &amp; Compressed</h3>
<ul>
<li>Mention every style in CSS files.</li>
<li>Find the common properties in objects, define them once &amp; try not to repeat them.</li>
<li>If using a significant amount of totally different properties for a specific page, define them in another CSS file &amp; only include on that page. So users viewing other pages won&#39;t need to download those properties.</li>
<li><strong>Compress your CSS file</strong> (you may try <a href="http://www.cssoptimiser.com/" target="_blank">this</a>, <a href="http://www.cleancss.com/" target="_blank">this</a> or <a href="http://iceyboard.no-ip.org/projects/css_compressor" target="_blank">this</a>).</li>
</ul>
<h3>5. Merge &amp; Compress JavaScript Files</h3>
<p>Try merging JavaScript files prevent multiple includes (see step 6).</p>
<p>If a JavaScript file will be used only in few pages, try to include them inside those pages only (like CSS in step 4).</p>
<p><strong>Compress JavaScript files</strong>. It lowers the size seriously &amp; doesn&#39;t have any bad effects on your side. <a href="http://javascriptcompressor.com/" target="_blank">This</a> &amp; <a href="http://dean.edwards.name/packer/" target="_blank">this</a> are some of the popular compressors.</p>
<h3>6. Manage Included Files Better</h3>
<p>There may be several files included in webpages like CSS files, JavaScript files and other JavaScript files for statistic services, social bookmarking sites, widgets &amp; more.</p>
<p>Try to decrease the number of these files:</p>
<ul>
<li>If using digg-reddit-like voting widgets, don&#39;t use them in stories that won&#39;t hit the frontpage &amp; remove the ones that were submitted few days ago as they won&#39;t have any help after sometime.</li>
<li>Use only 1 statistic service if possible. Every web-based service requires new files to be installed &amp; they are called each time a page is loaded.</li>
<li>Host files on your side &amp; don&#39;t use web addresses as file paths.
<ul>
<li>If you&#39;re using any JS frameworks like jQuery or MooTools, don&#39;t call the .js files from their websites but download &amp; upload them to your website.</li>
<li>Don&#39;t try to call any file from a web address like &quot;http://..&quot; as this always requires dns queries to be done &amp; will work slower.</li>
</ul>
</li>
<li><a href="http://aciddrop.com/php-speedy/" target="_blank">PHP Speedy</a> (<a href="http://www.webresourcesdepot.com/increase-website-loading-speed-with-php-speedy/">WRD post</a>)is a very effective solution that does all the combining &amp; compressing automatically. You may want to try it.</li>
</ul>
<h3>7. Use HTTP Compression</h3>
<p><strong>HTTP compression</strong> is one of the most effective step with a little effort.</p>
<p>Today, almost every browser &amp; web server supports <strong>HTTP compression</strong>. Using it, your files are sent to the visitor compressed &amp; un-compressed on their side &amp; you can have up to 90% success for the text based files (like HTML).</p>
<p>You have 2 popular choices with this:</p>
<ul>
<li><strong>HTTP compression</strong>: a feature of the web server (can be enabled on the server side)</li>
<li><strong>Gzip</strong>: can be enabled at the site level. <a href="http://betterexplained.com/articles/how-to-optimize-your-site-with-gzip-compression/" target="_blank">Here are more details</a>.</li>
<li>Further readings:
<ul>
<li><a href="http://en.wikipedia.org/wiki/HTTP_compression" target="_blank">HTTP Compression at Wikipedia</a></li>
<li><a href="http://www.ibm.com/developerworks/web/library/wa-httpcomp/" target="_blank">Speed Web Delivery With HTTP Compression &#8211; By IBM DeveloperWorks</a><a href="http://betterexplained.com/articles/how-to-optimize-your-site-with-gzip-compression/" target="_blank"><br />
				</a></li>
</ul>
</li>
</ul>
<h3>8. Better Coding</h3>
<p>This is for websites which does not use any ready-to-use systems like WordPress, Drupal, ExpressionEngine or similar (if you&#39;re using these then you&#39;re lucky as they are already well-coded).</p>
<p>Besides the better XHTML &amp; CSS coding, the dynamic coding of the website directly effects the performance.</p>
<p>As you can guess, this is a huge subject. But there are some major things like:</p>
<ul>
<li><strong>Seperate the static &amp; dynamic content</strong>. This will help writing less-code.</li>
<li><strong>Create smart &amp; effective functions</strong>. <strong>For ex</strong>: if you&#39;re going to use a user&#39;s name &amp; birthdate at the same page, don&#39;t run 2 queries or functions, your function must call 2 of them. Simply, try to do everything once.</li>
<li><strong>Connect to the database as few as you can</strong> &amp; once connected, call only the data you need.</li>
<li><strong>Try to keep database sizes small</strong>. If you&#39;ve a large database, sometimes seperating it into several databases perform better, specially for the data which is reached not so often. <strong>From the server&#39;s point of view</strong>: 4-250mbs of dbs perform better than 1-1gb of db.</li>
</ul>
<h3>9. Cache Webpages</h3>
<p>Caching is a superb way of decreasing the stress on the server by running more static files &amp; less queries. It simply saves a static, HTML version of the page to be displayed &amp; displays that file rather than the dynamic one.</p>
<p>For CMS applications like WordPress, there are already ready-to-use caching plugins (like <a href="http://wordpress.org/extend/plugins/wp-cache/" target="_blank">WP-Cache</a>). For PHP, <a href="http://www.sitepoint.com/article/caching-php-performance/" target="_blank">here</a> is a great article from SitePoint.</p>
<p>A small note, caching can also be done at the web server level. But if you&#39;re on a shared hosting account, you better be lucky to have it on.</p>
<h3>What Do You Suggest?</h3>
<p>Besides the tips mentioned above, what are your tips to make websites faster?</p>
<p><strong>Special Downloads:</strong><br />
<a href="http://www.webresourcesdepot.com/?download=jBasket" target="_blank">Ajaxed Add-To-Basket Scenarios With jQuery And PHP</a><br />
<a href="http://www.webresourcesdepot.com/?download=Free-Admin-Template" target="_blank">Free Admin Template For Web Applications</a><br />
<a href="http://www.webresourcesdepot.com/?download=jQuery-Dynamic-Drag-Drop" target="_blank">jQuery Dynamic Drag&#8217;n Drop</a><br />
<a href="http://www.webresourcesdepot.com/?download=sTwitter-1-0" target="_blank">ScheduledTweets</a></p>
<p><strong>Advertisements:</strong><br />
<a href="http://www.admintemplates.com" target="_blank">Professional XHTML Admin Template ($15 Discount With The Code: WRD.)</a><br />
<a href="http://www.xhtmchop.com" target="_blank">Psd to Xhtml</a><br />
<a href="http://www.sslmatic.com" target="_blank">SSLmatic &#8211; Cheap SSL Certificates (from $19.99/year)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webresourcesdepot.com/tips-to-improve-website-speed/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using wincache
Page Caching using wincache (User agent is rejected)
Database Caching 6/12 queries in 0.009 seconds using wincache

Served from: www.webresourcesdepot.com @ 2012-02-12 22:39:49 -->
