「Programming」
AnonymousYou can, right?
You can, right?
Man, I hate client side rendered stuff, I can't just attach an event to DOMContentLoaded and be done
>>1125090
As soon as you need to use MutationObserver you just know you're gonna waste hours of your life
>>1125091
#editai change "gonna" to "about to"
>>1125090
>>1125091
Speaking of which, does adding a MutationObserver to the body node (with subtree & childList options), slow things down much? I would expect so but I can't find any benchmarks for this kind of thing - js programmers seem to not care about performance whatsoever
bump
>>1144814
i sure hope not because we use one for the reply form lol. (all to just dynamically adjust the space between the reply form and the bottom of the thread.) i've suspected it might, so we're going to try to get rid of it
>>1165916
Why is an observer needed for that? Can't you just call a function when a post finishes directly?
>>1167042
it has to run every time any text in the reply form changes. it's very ugly and was not written by me
it's just added to the reply form element though, not the body
>>1167970
That'll be fine... maybe it'll be fine on the body node too - but executing on every append/removal of the entire document sounds bad, but maybe not