I can definetely relate. I found myself spending time in the morning coding some JS project using scala-js [1] to get a daily dose of sexy elegancy before turning to rather ugly PHP tasks.
in the demo test caught my attention - what is a good way to achieve this in production code? i.e. execute a function when a certain element which matches the query becomes visible?
atm i'm using the DOMNodeInserted event (debounced)