Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6677375
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:06:43+00:00 2026-05-26T04:06:43+00:00

Using the fantastic (yet cruelly not accepted) post on this question: List all javascript

  • 0

Using the fantastic (yet cruelly not accepted) post on this question: List all javascript events wired up on a page using jquery I have discovered that it’s possible to query the jQuery events cache to read the events that are wired up, what they’re wired up to and so on.

I also have Visual Event, a bookmarklet which overlays event bindings onto the actual HTML elements on screen.

What I need now – to test the impact of the events which are hooked up on my page, is to literally unbind, kill, die (etc) every single event which jQuery knows about – but this seems to be tricky to achieve without knowing all of the context (e.g. selector, handlers) – the reason is to test the “general” page performance, filling in forms, scrolling around, collapsing/expanding stuff and so on.

I can potentially ‘roll my own’ script to do this, using the script in the question I posted above to get all the items and then removing them – but I’m not sure if this is possible, or the best way to go around it – I hope that I’m re-inventing a pre-existing wheel by suggesting this.

What I really want/need is:

  $(document).removeAllEventsThatAreWiredUpToAnything();

…but I know it does not exist.

Is there an easy way to do this? Disabling JavaScript is not really an option as my pages are built fairly extensively with ajax calls that fire when loading up, so it wouldn’t be that useful a test.

More than happy to take/accept solutions rather than direct answers – just need to gather some understanding of performance impact of event overuse in the quickest possible way.

Regards
-SB

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T04:06:44+00:00Added an answer on May 26, 2026 at 4:06 am

    This:

    $('*').unbind();
    

    will unbind all event types for all elements.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Note: I've cross-posted this question in the grails-user mailing list This weekend using this
I am using this fantastic example of a jQuery editable invoice as a template
I am using the rather fantastic jQuery multiple select plugin, ASM select This plugin
I have been looking through this fantastic article: http://blogs.zynaptiq.com/bernsee/pitch-shifting-using-the-ft/ While being fantastic, it is
I've been following this fantastic tutorial about mass inserting data. All is well, I've
Well, I'm making my foray into this fantastic site with a question about the
im using the fantastic eric4 ide to code python, it's got a tool built
I'm using the fantastic jquery .validate plugin from Jörn Zaefferer at bassistance I'm using
How would I go about using Stephen Celis' fantastic SCListener singleton? ( http://stephencelis.com/2009/03/02/now-i-just-need-an-audience.html )
Using TortoiseSVN against VisualSVN I delete a source file that I should not have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.