<?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>Expressing IT &#187; DOM</title>
	<atom:link href="http://developer.expressionz.in/blogs/tag/dom/feed/" rel="self" type="application/rss+xml" />
	<link>http://developer.expressionz.in/blogs</link>
	<description>User Interface : just another, but a serious developers weblog</description>
	<lastBuildDate>Thu, 20 May 2010 18:05:48 +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>Best Practices: Keep the Number of DOM Elements Small</title>
		<link>http://developer.expressionz.in/blogs/2008/06/06/best-practices-keep-the-number-of-dom-elements-small/</link>
		<comments>http://developer.expressionz.in/blogs/2008/06/06/best-practices-keep-the-number-of-dom-elements-small/#comments</comments>
		<pubDate>Sat, 07 Jun 2008 05:14:00 +0000</pubDate>
		<dc:creator>Nikhil</dc:creator>
				<category><![CDATA[Best Practices]]></category>
		<category><![CDATA[User Interface Desgin]]></category>
		<category><![CDATA[DOM]]></category>

		<guid isPermaLink="false">http://developer.expressionz.in/blogs/?p=24</guid>
		<description><![CDATA[More the DOM elements on the page, slower it renders, slower is the DOM access in JavaScript’s. A high number of DOM elements can be due bad layout design.]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fdeveloper.expressionz.in%2Fblogs%2F2008%2F06%2F06%2Fbest-practices-keep-the-number-of-dom-elements-small%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fdeveloper.expressionz.in%2Fblogs%2F2008%2F06%2F06%2Fbest-practices-keep-the-number-of-dom-elements-small%2F&amp;source=nikhild&amp;style=normal&amp;hashtags=Best+Practices,DOM" height="61" width="50" /><br />
			</a>
		</div>
<p>More the DOM elements on the page, slower it renders, slower is the DOM access in JavaScript’s. A high number of DOM elements can be due bad layout design. For instance, nested tables might have been used for layout purposes. Use any HTML Tag where is makes sense semantically. For E.g. DONOT use tables for layouts, but DONOT hesitate to use them where you have to display tabular data, and hence will use reduce DOM elements, in comparison, to a similar structure created using DIVs only..</p>
<blockquote><p>To test the number of DOM elements in your HTML page, just type the following in the Firebug&#8217;s console:<code>document.getElementsByTagName('*').length</code></p></blockquote>
<p>There is no set standard as to how many DOM elements are too many. Check other similar pages that have good markup.Eg. Yahoo! Home Page is a pretty busy page and still under 700 elements (HTML tags).</p>
]]></content:encoded>
			<wfw:commentRss>http://developer.expressionz.in/blogs/2008/06/06/best-practices-keep-the-number-of-dom-elements-small/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
