I'm aiming to find Javascript events bottlenecks in a given page, be it from a click, from focusing a text field or anything like that.
I'm very convinced there is some neat way to do this, although I don't think it's something cross-browser. But at this point doesn't matter to me what browser vendor allows me to do such thing.
So, I need a way to, for example, disable ALL specific event callbacks to be called. So, I need the capability of preventing any click event to be triggered. Is that possible on any of those decent browsers (Chrome, Firefox, Safari, Opera)? Because having that would grant me a way to isolate what event type and what event callback is the bottleneck origin.
Before anyone suggests me to use the Script tab in the Chrome Developer Tools to set Event Listener Breakpoints, I already found out that clicking on a specific text field appears to be the problem (it triggers 4 click callbacks, and apparently there is a lot of event delegation there), but I'd like to disable click events at browser-level to check if I'm really in the right path to locate precisely the bottleneck culprit.