# How many DOM nodes is too many? 33 per row, measured

> Lighthouse warns at about 800 DOM nodes. One profile row in our table is 33 nodes, so 200 rows is 6,729 and a 304-row trash was about ten thousand.

Source: https://mosaicbrowser.com/blog/dom-nodes-per-table-row

## Thirty-three DOM nodes per row, measured at four page sizes

Lighthouse warns at about 800 DOM nodes. One profile row in our table is 33 nodes, so 200 rows is 6,729 and a 304-row trash was about ten thousand.

![33 nodes a row, dead linear, beside a screenshot: the Mosaic profiles table: names, coloured tags, proxy locations and a Start button on each row](https://mosaicbrowser.com/covers/dom-nodes-per-table-row.webp)

Lighthouse, the audit built into Chrome's developer tools, warns when a page's body has more than about 800 DOM nodes and calls it an error above about 1,400. That is the usual answer to "how many DOM nodes is too many", and it is a fair one for a page that loads once. For an app table the better question is how many nodes one row costs, because that number times your data is your page. In Mosaic's profiles table it is 33, and we measured it.

## How many DOM nodes one table row costs

Both of our big tables, profiles and proxies, used to render every row they had. On the machine we build on that was 37 profiles in the library and 304 in the trash. Nobody saw a stack trace. It came in as a prediction from the owner: "right now it's just an infinite list. It's gonna crash my computer."

A profile row is more than a line of text. It carries an OS mark, a status pill, a tag strip, a proxy pill with a tooltip, two buttons and an overflow menu. So we counted. In the running app, changing only the page size, with the same library on screen:

| Page size | Rows | DOM nodes | Page turn |
| --- | --- | --- | --- |
| 25 | 25 | 978 | 15 ms |
| 50 | 50 | 1,820 | 16 ms |
| 100 | 100 | 3,469 | 18 ms |
| 200 | 200 | 6,729 | 24 ms |

Take the differences and it is dead linear: 842 nodes for the 25 rows between the first two sizes, 1,649 for the next 50, 3,260 for the next 100. That is 33 nodes a row, give or take one, on top of about 150 for everything around the table.

Mosaic is a desktop app

Email yourself the link and open it on your computer.

[How it works: Bulk actions](https://mosaicbrowser.com/features/bulk-actions)

## Why 25 rows already passes Lighthouse's line

Even our smallest page, 978 nodes, is over the 800 warning. We did not treat that as the limit, because Lighthouse is scoring a page that has to arrive over a network and lay out for the first time. A desktop app's window is already loaded. A page turn at 200 rows took 24 ms, which nobody would notice.

What the table showed was the slope. With no page size, the node count is 33 times whatever is in the library, and the library is the one number we do not control. The 304-row trash worked out at about ten thousand nodes in one table. A library of a thousand profiles would have been thirty-three thousand, and Pro has no profile limit, so nothing stops a library getting there. A cost that grows with somebody else's data needs a ceiling, so the page size became that ceiling.

Fifty is the default because fifty rows fill a laptop screen roughly twice. You can pick 25, 100 or 200 at the foot of the table, and the choice is kept on that computer.

## What paging breaks if you only slice the array

Cutting the row list to a page took one line. Three things broke with it, and none of them showed an error:

1. **A selection must not be scoped to the page.** The selected ids had been filtered by what was on screen, which did no harm while the screen held everything. With paging, you could tick forty profiles, turn the page, and watch the bulk bar shrink to the few that happened to be on the new page. Then a bulk action ran on only those. The header checkbox now adds and removes this page's rows and leaves the rest of the selection alone.
2. **Any change to the filters goes back to page one.** Searching from page four asked for rows 150 to 200 of a result with eleven rows in it, and drew an empty table over a search that had matched. It read as "search is broken".
3. **Anything counted from the rows has to be counted for the whole project.** The profiles table says which other profiles share a proxy, because a shared IP is how two accounts get linked. Counted from the visible rows, it would have named three of the nine profiles on a proxy and looked complete. It comes from one pass over the project's index now.

The third one turned up a second bug. The Proxies page counted each proxy's users by reading every profile off disk, once per proxy: 340 profiles and 20 proxies came to nearly seven thousand file reads to produce twenty numbers, on every visit to the page. The index already had each profile's proxy, so none of those reads had ever been needed.

## The same page on the other two surfaces

The window is one of three ways into a Mosaic library, and the REST API pages the same lists. Every list route answers in one shape with a `total`, so a script reading 50 rows at a time knows there are 344 without fetching them; the history of that change is in [why every list in our API answers in one shape](https://mosaicbrowser.com/blog/every-list-one-shape). The selection rule matters most for [bulk actions](https://mosaicbrowser.com/features/bulk-actions), where Start, Stop, Edit and Move act on everything ticked, across pages.

A table that redraws too much has a cousin on the other axis: a list rebuilt on a timer throws away what the reader put there, which is how a revealed setup key in our authenticator once lasted under a second ([the timer story](https://mosaicbrowser.com/blog/timer-rebuild-discards-state)). Both come down to doing the least work the change needs.

## Sources

1. [Chrome for Developers: Avoid an excessive DOM size](https://developer.chrome.com/docs/lighthouse/performance/dom-size), read November 3, 2026

## Questions

### How many DOM nodes is too many for a web page?

Lighthouse warns when the body has more than about 800 nodes and reports an error above about 1,400. Those figures are for a page loading, not a hard limit. A table that renders every row it has will pass them quickly and keep growing with the data.

### How do I count the DOM nodes on a page?

In the developer console, document.querySelectorAll('*').length counts elements, and Lighthouse's DOM size audit reports the total for the page. Count once per page size and divide the difference by the extra rows to get the cost of one row.

### Is pagination or virtualisation better for a long table?

Both bound the node count. We chose pages of 25, 50, 100 or 200 rows because a page has a stable range a person can talk about, and because selection, filters and counts then have clear rules. A virtual list needs the same three rules and makes them harder to see.

### What page size does Mosaic use?

Fifty rows by default, with 25, 100 and 200 to choose from. The choice is kept per computer, so the table opens at the size you last picked.

## Related

[Why every list in our API answers in one shape](https://mosaicbrowser.com/blog/every-list-one-shape): /projects, /tags and /proxies returned bare arrays in version 1. Now every list carries total, and it says 344 when the page holds 50.

[Bulk edit browser profiles: start, tag, move and arrange](https://mosaicbrowser.com/features/bulk-actions): Bulk edit browser profiles in Mosaic: start, stop, edit, tag, move or re-proxy a selection together, arrange its windows, and type into all of them.

[A list rebuilt every second threw away what you revealed](https://mosaicbrowser.com/blog/timer-rebuild-discards-state): Our authenticator rebuilt every row each second, so a revealed setup key lasted under a second. A tick updates in place; only a new shape rebuilds.

[Local first: your profiles stay on your computer](https://mosaicbrowser.com/features/local-first): Mosaic has no cloud copy of your profiles. Profiles, cookies and proxies stay on your computer, encrypted on disk, with app lock, daily backups and a trash.









[Can a LinkedIn Recruiter seat be shared?](https://mosaicbrowser.com/blog/share-a-linkedin-recruiter-seat): No. LinkedIn's terms tie each Recruiter seat to one named person and forbid sharing it. An admin can reassign or park a seat, within a monthly limit.

[Anti-detect inside your own browser: the extension model](https://mosaicbrowser.com/blog/extension-based-isolation): SessionBox keeps a cookie jar per session inside your own browser. Logins stay apart; the GPU, fonts and canvas a page reads are the same in all of them.

## Mosaic, on your own computer

The browser this blog is about: its own Chromium, fingerprints from real machines and a proxy IP per profile. Free covers 3 profiles with no card, and Pro is $25 a month for any number of them.

Mosaic is a desktop app

Email yourself the link and open it on your computer.
