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.
Make 500 profiles in one go, then work on all of them at onceIn Mosaic: Bulk actions. 500 profiles per batch; start, edit and type into many. 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.
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:
- 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.
- 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".
- 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. The selection rule matters most for 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). Both come down to doing the least work the change needs.
Sources
- Chrome for Developers: Avoid an excessive DOM size, read November 3, 2026






