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?
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
Post a Comment