html - Best ways to reduce number of DOM elements -


Everyone agrees that fewer DOM elements mean better page performance, better javascript performance, especially older In browsers

But where are the best places to reduce DOM elements? What are the common culprits you have come to people who are the easy solution to bring down the number?

"post-text" itemprop = "text">

Usage:

  & lt; Ul id = "navigation-main" & gt; e.t.c. & Lt; / Ul & gt;  

Their place:

  & lt; Div id = "navigation-main" & gt; & Lt; Ul & gt; e.t.c. & Lt; / Ul & gt; & Lt; / Div & gt;  

... when it is possible, then it is. Sometimes you need additional div for layout purposes. But if not necessary, do not use it.


Comments

Popular posts from this blog

objective c - iPhone and it's wireless area -

unix - Listing all shared memory segments used by a process on AIX5.3+ -

.net - Self Tracking Entities (STE)'s and partial updates with EF4 and mVC2 -