Pruning Dead Watched Threads from Catalog Causes Layout Shift
https://boards.4channel.org/g/thread/91944254#p92027331
- go to catalog mode (preferably bump mode) and have "pin watched threads" enabled
- watch a few threads about to die
- refresh either the index or thread watcher until those threads die
- remove/prune the threads from the thread watcher and the layout shifts
In DevTools I set CPU Throttle to x6 to try and work out what is being called to cause it, but it doesn't make sense to me/not sure what I'm looing for.
https://boards.4channel.org/g/thread/91944254#p92028551
Potentially related. Watch a thread (longer helps), open it in a new window, have the other window on the catalog, scroll through, layout shifts.
Adding subtree modification breakpoints to .board gives these as potential reasons:

these are all my screenshots thanks
pruning dead threads causes the layout shift, and also the function that reloads the watched threads to get the new unread count also causes this layout shift. it seems to me that this issue is entirely attributed to the thread watcher functionality. sometimes the thread watcher just doesn't work, if i post in a thread it just doesn't get added to the thread watcher, and i never get notified of my (You)s. if i read a (You) from one tab and go to another tab that is sitting on the catalog, the thread watcher still shows the (You) is unread. i have to then from that tab, go to the thread, scroll to the end, go back to the catalog (cached) and refresh and the (you) is gone.
i'm using firefox stable and this happens in both tampermonkey/violentmonkey
i've been using 4chanx (up to date) extensively with the Pinned Watch Threads feature enabled for quite a long while now. it causes more problems than catalog layout shift on my end. enabling it actually causes quite a lot of random problems. sometimes most of the catalog disappears and stays gone. it happens at exactly the point where threads disappear in the layout shift. clicking the refresh catalog button usually doesn't restore it, but a tab refresh will. sometimes after it disappears it restores itself on its own after a few seconds. threads randomly will not be added to the thread watcher when you post a reply to it. threads randomly won't highlight red when i get a (You) inside that thread when the tab isn't open. thread watcher will not always update and will look different in different tabs. quick filter menu takes several clicks to open. sometimes it will open again on its own after being closed. it is possibly related to this feature being enabled.
turning off pinned watched threads relieves all of these symptoms for me.
there is a discussion about it here and you may bear witness to many pillars of salt: https://boards.4channel.org/g/thread/95619488