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

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -