@Shufei It would be easier to make it "this is how we do notifications for JS users" than it would to make it an optional feature. I don't currently have an idea of CPU or RAM overhead.
I may poke at it in a feature branch once I get some side project time...haven't actually had that kind of time in a while, though.