You will probably get the most appropriate answer if you described what problem you are really trying to solve.
jQuery does not have a public document to cancel or block document.ready () handlers. If you control the code, you can use a global variable and a condition like this:
var skipReady = false; $(document).ready(function () { if (!skipReady) { alert('ready'); } });
Or, if you want to hack jQuery a bit (outside of the documented interfaces), you can do this:
$(document).ready(function() { alert("ready"); });
You can see this latest work here: http://jsfiddle.net/jfriend00/ZjH2k/ . This works because jQuery uses the: $.isReady
property to keep track of whether they have already fired ready-made handlers or not. By setting it to true, he thinks that he has already fired them, so that he does not do it again every time.
source share