Skip to content

"Too many DOM Nodes" Replay Issue #76852

@ryan953

Description

@ryan953

Insert "DOM Node Counts" (Total, added, removed) whenever we send a mutation to the server, and then on the server detect when thresholds are breached in order to create issues. Different sites can have different tolerances, but too many nodes mutated at once indicates memory thrash, render thrash, and slowness especially for people with lower powered devices (mobile, on-batter, older cpu, etc...)

we can describe the problem better, with information like:

your page might look laggy for people because of this. render performance and INP could be affected because it takes a long time to prepare this many nodes… and garbage collector probably kicks in causing more pauses during render.

fixes we can suggest to dev might include:

use virtual scrolling (only render what’s visible)
use on-demand loading & pagination, so not all data needs to be on the browser at once (replay details has this problem :D)
use batched rendering so the browser doesn’t block inputs, and the GC can run on smaller batches

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions