-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Description
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