Hi there,
I'm working on a, well I dare to call it 'Webapp', that has lots of links that call JS functions. Now I'm wondering, instead of invoking ~30 click-observers, does it perform better to just invoke a single click-observer and use the findElement method to call the right function? I'm not sure because I'd need 30 if statements (maybe even more) on every click, which doesn't seem right either. Also, I find having 1 mega-function that calls all other function (software-architecture-wise) kinda ugly.
What would you recommend. Does using only 1 observer even boost the perfomance significantly?
Thanks
Lukas