Can't load XRegExp twice in the same frame

Have you ever gotten this error when using jQuery to handle DOM events?

Can't load XRegExp twice in the same frame

In many cases, I’ve found that to be caused by code like this:

~~~~ {.”javascript” name="”code”"} $(‘a.foo’).click( function() { alert(‘You clicked on me!’);}); wzxhzdk:0


I've also run into a couple of situations where Chrome Extensions for formatting JSON & XML also caused this error in some cases. Disabling those extensions also fixed the error.

Thanks to this Stackoverflow answer for the suggestion.