3 ms·
That's really cool. The only thing missing is the total number of DOM elements on a page. I've seen production sites with literally thousands, and it slows most
by Someone1234 8y ago
That's really cool. The only thing missing is the total number of DOM elements on a page. I've seen production sites with literally thousands, and it slows most browsers to a crawl (and balloons memory).
- rifung 8y agoIf the issue of too many DOM elements is memory use, wouldn't it be better to just limit the memory use of a page? Apologies if this is a really ignorant question as I know very little about browsers/front end development.
- ummonk 8y agoThousands isn’t really a whole lot. If you have say a table with 10 columns and 50 rows and have complex content in the cells (including div elements) you’ll be well into the thousands.
- recursive 8y agoThis comments page has over 1194 elements on it right now, with only 34 comments. Thousands is peanuts.