Before people running this start complaining to @sox and @k00b about the site being slow…
This fires on every DOM mutation (often multiple times per load) and queries the whole document each time. With many live comments and huge threads, this can be a problem.
At the very least, the observer logic should be debounced and only act on newly added nodes.
Before people running this start complaining to @sox and @k00b about the site being slow…
This fires on every DOM mutation (often multiple times per load) and queries the whole document each time. With many live comments and huge threads, this can be a problem.
At the very least, the observer logic should be debounced and only act on newly added nodes.