Disable specific event for browser page

1,071 views
Skip to first unread message

Leandro

unread,
Apr 13, 2012, 9:20:09 AM4/13/12
to Google Chrome Developer Tools
Hi. This is a question that I also posted on stack overflow:
http://stackoverflow.com/questions/10141441/disable-specific-event-for-browser-page

If anyone could help...I'll also post the text right here too:
---
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, FF, 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.
Reply all
Reply to author
Forward
0 new messages