<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Does white space slow the  browser down in web coding  like PHP, Javascript and stuff?</title>
	<atom:link href="http://yoursitesample.com/php-coding/does-white-space-slow-the-browser-down-in-web-coding-like-php-javascript-and-stuff/feed/" rel="self" type="application/rss+xml" />
	<link>http://yoursitesample.com/php-coding/does-white-space-slow-the-browser-down-in-web-coding-like-php-javascript-and-stuff/</link>
	<description>Web Design Articles and Tutorials</description>
	<lastBuildDate>Mon, 06 Sep 2010 11:19:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: jitendra</title>
		<link>http://yoursitesample.com/php-coding/does-white-space-slow-the-browser-down-in-web-coding-like-php-javascript-and-stuff/comment-page-1/#comment-764</link>
		<dc:creator>jitendra</dc:creator>
		<pubDate>Sat, 27 Feb 2010 13:51:59 +0000</pubDate>
		<guid isPermaLink="false">http://yoursitesample.com/php-coding/does-white-space-slow-the-browser-down-in-web-coding-like-php-javascript-and-stuff/#comment-764</guid>
		<description>I agree with bravo&lt;br&gt;&lt;b&gt;References : &lt;/b&gt;&lt;br&gt;</description>
		<content:encoded><![CDATA[<p>I agree with bravo<br /><b>References : </b></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robin T</title>
		<link>http://yoursitesample.com/php-coding/does-white-space-slow-the-browser-down-in-web-coding-like-php-javascript-and-stuff/comment-page-1/#comment-763</link>
		<dc:creator>Robin T</dc:creator>
		<pubDate>Sat, 27 Feb 2010 13:21:59 +0000</pubDate>
		<guid isPermaLink="false">http://yoursitesample.com/php-coding/does-white-space-slow-the-browser-down-in-web-coding-like-php-javascript-and-stuff/#comment-763</guid>
		<description>In almost all cases white spaces are not a performance issue.

For server-side code like PHP, the code is interpreted or compiled on server side locally where the compiler / interpreter is clever enough to ignore the white spaces, so you don&#039;t need to worry about it.

For client-side code like JavaScript, CSS and HTML, extra white space does mean extra bandwidth is required to transfer the files from the web server to the browser (and network bottleneck is indeed the slowest compared to others - listed from fastest to slowest: CPU, RAM, disk, network). However, note that most servers and browsers support and perform compression (e.g.: using mod_gzip or mod_deflate in Apache) during the transfer, so the extra bandwidth for the compressed white spaces will be tiny.

So generally you don&#039;t need to worry about the white space and just focus on making your code readable.

For huge code though there are tools that can automatically trim down the size of your files like HTML Tidy, CSSTidy and JSMin.&lt;br&gt;&lt;b&gt;References : &lt;/b&gt;&lt;br&gt;</description>
		<content:encoded><![CDATA[<p>In almost all cases white spaces are not a performance issue.</p>
<p>For server-side code like PHP, the code is interpreted or compiled on server side locally where the compiler / interpreter is clever enough to ignore the white spaces, so you don&#8217;t need to worry about it.</p>
<p>For client-side code like JavaScript, CSS and HTML, extra white space does mean extra bandwidth is required to transfer the files from the web server to the browser (and network bottleneck is indeed the slowest compared to others &#8211; listed from fastest to slowest: CPU, RAM, disk, network). However, note that most servers and browsers support and perform compression (e.g.: using mod_gzip or mod_deflate in Apache) during the transfer, so the extra bandwidth for the compressed white spaces will be tiny.</p>
<p>So generally you don&#8217;t need to worry about the white space and just focus on making your code readable.</p>
<p>For huge code though there are tools that can automatically trim down the size of your files like HTML Tidy, CSSTidy and JSMin.<br /><b>References : </b></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cristianods</title>
		<link>http://yoursitesample.com/php-coding/does-white-space-slow-the-browser-down-in-web-coding-like-php-javascript-and-stuff/comment-page-1/#comment-762</link>
		<dc:creator>cristianods</dc:creator>
		<pubDate>Sat, 27 Feb 2010 12:57:59 +0000</pubDate>
		<guid isPermaLink="false">http://yoursitesample.com/php-coding/does-white-space-slow-the-browser-down-in-web-coding-like-php-javascript-and-stuff/#comment-762</guid>
		<description>Any extra markup that you place on your code does slow down the performance of your code, therefore, unless you are programming for mobile (cell phones), blank spaces will not affect as much.

You should consider many techniques as possible for speeding up your system, such as correct syntax on for loops, caching, mem caching, etc.

P.S. 4 blank spaces is the tab equivalent and is the best measure to be used when indenting your code since it will be read in the same way on the most of the editors.&lt;br&gt;&lt;b&gt;References : &lt;/b&gt;&lt;br&gt;http://mcloide.wordpress.com
http://www.mcloide.com</description>
		<content:encoded><![CDATA[<p>Any extra markup that you place on your code does slow down the performance of your code, therefore, unless you are programming for mobile (cell phones), blank spaces will not affect as much.</p>
<p>You should consider many techniques as possible for speeding up your system, such as correct syntax on for loops, caching, mem caching, etc.</p>
<p>P.S. 4 blank spaces is the tab equivalent and is the best measure to be used when indenting your code since it will be read in the same way on the most of the editors.<br /><b>References : </b><br /><a href="http://mcloide.wordpress.com" rel="nofollow">http://mcloide.wordpress.com</a><br />
<a href="http://www.mcloide.com" rel="nofollow">http://www.mcloide.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dhvrm</title>
		<link>http://yoursitesample.com/php-coding/does-white-space-slow-the-browser-down-in-web-coding-like-php-javascript-and-stuff/comment-page-1/#comment-761</link>
		<dc:creator>dhvrm</dc:creator>
		<pubDate>Sat, 27 Feb 2010 12:10:59 +0000</pubDate>
		<guid isPermaLink="false">http://yoursitesample.com/php-coding/does-white-space-slow-the-browser-down-in-web-coding-like-php-javascript-and-stuff/#comment-761</guid>
		<description>Technically, yes; the more text the server and browser have to parse, including white space, the worse the performance.

Practically, no. We&#039;re talking about a couple extra microseconds.&lt;br&gt;&lt;b&gt;References : &lt;/b&gt;&lt;br&gt;</description>
		<content:encoded><![CDATA[<p>Technically, yes; the more text the server and browser have to parse, including white space, the worse the performance.</p>
<p>Practically, no. We&#8217;re talking about a couple extra microseconds.<br /><b>References : </b></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dude of the Future</title>
		<link>http://yoursitesample.com/php-coding/does-white-space-slow-the-browser-down-in-web-coding-like-php-javascript-and-stuff/comment-page-1/#comment-760</link>
		<dc:creator>Dude of the Future</dc:creator>
		<pubDate>Sat, 27 Feb 2010 11:51:59 +0000</pubDate>
		<guid isPermaLink="false">http://yoursitesample.com/php-coding/does-white-space-slow-the-browser-down-in-web-coding-like-php-javascript-and-stuff/#comment-760</guid>
		<description>yes they simply do coz it increases the size of the file even by 1 kilobyte,,so i suggest you to remove all the spaces in the code when the development is done....to do that you can simply use this http://www.selfseo.com/html_optimizer.php&lt;br&gt;&lt;b&gt;References : &lt;/b&gt;&lt;br&gt;</description>
		<content:encoded><![CDATA[<p>yes they simply do coz it increases the size of the file even by 1 kilobyte,,so i suggest you to remove all the spaces in the code when the development is done&#8230;.to do that you can simply use this <a href="http://www.selfseo.com/html_optimizer.php" rel="nofollow">http://www.selfseo.com/html_optimizer.php</a><br /><b>References : </b></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tj</title>
		<link>http://yoursitesample.com/php-coding/does-white-space-slow-the-browser-down-in-web-coding-like-php-javascript-and-stuff/comment-page-1/#comment-759</link>
		<dc:creator>tj</dc:creator>
		<pubDate>Sat, 27 Feb 2010 11:44:59 +0000</pubDate>
		<guid isPermaLink="false">http://yoursitesample.com/php-coding/does-white-space-slow-the-browser-down-in-web-coding-like-php-javascript-and-stuff/#comment-759</guid>
		<description>There may be some effect depending on the code, though generally it probably doesn&#039;t make a measurable difference. 

PHP gets interpreted by the server so whitespace in PHP code should not really effect the browser.

Javascript though gets interpreted by the browser so whitespace there may have some effect since it does increase the amount of data to be transferred.

Usually whitespace is a good thing for code maintanence so I wouldn&#039;t worry much about stripping it out, adding minutes to code changes just to save what would likely only be milliseconds in rendering time.

A google search will return some results with interesting comments and debate on this subject.&lt;br&gt;&lt;b&gt;References : &lt;/b&gt;&lt;br&gt;</description>
		<content:encoded><![CDATA[<p>There may be some effect depending on the code, though generally it probably doesn&#8217;t make a measurable difference. </p>
<p>PHP gets interpreted by the server so whitespace in PHP code should not really effect the browser.</p>
<p>Javascript though gets interpreted by the browser so whitespace there may have some effect since it does increase the amount of data to be transferred.</p>
<p>Usually whitespace is a good thing for code maintanence so I wouldn&#8217;t worry much about stripping it out, adding minutes to code changes just to save what would likely only be milliseconds in rendering time.</p>
<p>A google search will return some results with interesting comments and debate on this subject.<br /><b>References : </b></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Colinc</title>
		<link>http://yoursitesample.com/php-coding/does-white-space-slow-the-browser-down-in-web-coding-like-php-javascript-and-stuff/comment-page-1/#comment-758</link>
		<dc:creator>Colinc</dc:creator>
		<pubDate>Sat, 27 Feb 2010 11:34:59 +0000</pubDate>
		<guid isPermaLink="false">http://yoursitesample.com/php-coding/does-white-space-slow-the-browser-down-in-web-coding-like-php-javascript-and-stuff/#comment-758</guid>
		<description>It will obviously have some impact on performance, as the browser needs to read EVERY line to determine if it is valid code or not. It probably would not be noticeable in normal use. I often use single line spacing between 2 sections, like an if() and the next routine. If there is a block of if()s or nested if()s I use a single line space, then a short comment to mark the beginning, followed by a matching end comment and another empty line. Say : //select operation 1 - at the beginning, and //end op 1 -afterwards. And I run from a relatively slow site feed, and my site opens fast even on a 33Kbps dialup.&lt;br&gt;&lt;b&gt;References : &lt;/b&gt;&lt;br&gt;</description>
		<content:encoded><![CDATA[<p>It will obviously have some impact on performance, as the browser needs to read EVERY line to determine if it is valid code or not. It probably would not be noticeable in normal use. I often use single line spacing between 2 sections, like an if() and the next routine. If there is a block of if()s or nested if()s I use a single line space, then a short comment to mark the beginning, followed by a matching end comment and another empty line. Say : //select operation 1 &#8211; at the beginning, and //end op 1 -afterwards. And I run from a relatively slow site feed, and my site opens fast even on a 33Kbps dialup.<br /><b>References : </b></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gorlock</title>
		<link>http://yoursitesample.com/php-coding/does-white-space-slow-the-browser-down-in-web-coding-like-php-javascript-and-stuff/comment-page-1/#comment-757</link>
		<dc:creator>Gorlock</dc:creator>
		<pubDate>Sat, 27 Feb 2010 11:15:59 +0000</pubDate>
		<guid isPermaLink="false">http://yoursitesample.com/php-coding/does-white-space-slow-the-browser-down-in-web-coding-like-php-javascript-and-stuff/#comment-757</guid>
		<description>PHP and javascript code needs to be transported to the client for them to be useful. The larger the code, the more the network delay, generally speaking. However, data for network transfer gets broken down into packets of standard size (I think its 1KB, but I could be mistaken). It takes the same amount of time to transfer 1 byte v/s the max packet size. So *some* white space bloat would not contribute to network delay.

Code readability is an important consideration during software development and maintenance and should not be taken lightly. I would encourage you to continue doing what you are doing. You can consider &quot;code compactors&quot; that will trim white space after you are done with the development and before you deploy it online. This offers the best of both worlds - code readability and fast download.

Hope that helps!&lt;br&gt;&lt;b&gt;References : &lt;/b&gt;&lt;br&gt;</description>
		<content:encoded><![CDATA[<p>PHP and javascript code needs to be transported to the client for them to be useful. The larger the code, the more the network delay, generally speaking. However, data for network transfer gets broken down into packets of standard size (I think its 1KB, but I could be mistaken). It takes the same amount of time to transfer 1 byte v/s the max packet size. So *some* white space bloat would not contribute to network delay.</p>
<p>Code readability is an important consideration during software development and maintenance and should not be taken lightly. I would encourage you to continue doing what you are doing. You can consider &quot;code compactors&quot; that will trim white space after you are done with the development and before you deploy it online. This offers the best of both worlds &#8211; code readability and fast download.</p>
<p>Hope that helps!<br /><b>References : </b></p>
]]></content:encoded>
	</item>
</channel>
</rss>
