2 documents tagged with “DOM”

Back to all tags.

The DOM (Document Object Model) is the tree of all HTML elements on the page. The larger it is, the longer the calculations for layout, paint, and styling. Lighthouse will warn you about a big DOM (over 1500 elements), but the real problems start sooner.

Under the DOM tag you will find articles on analysing the DOM, where it most often grows beyond reason, and what techniques (virtualisation, lazy rendering, content-visibility) can tame it.