I searched around and couldn't find an answer for this. I'm in a bind because I'm developing JS that is used in a web framework, and is frequently mixed in with other developers' jQuery code. Unfortunately errors in their jQuery(document).ready blocks prevent mine from executing. Take the following simple sample:
<script type="text/javascript"> jQuery(document).ready(function() { nosuchobject.fakemethod(); //intentionally cause major error }); </script> <script type="text/javascript"> jQuery(document).ready(function() { alert("Hello!"); //never executed }); </script> Why is is that an error in on ready block will prevent further ready blocks from executing? Is there a "safe" way to run jQuery (document).ready that will run even in the case of previous errors? Thanks for any pointers.