Using jQuery, is there a way to retrigger the document.ready trigger at some point after a page has loaded?
Update: jQuery sheds them once they are run.
You can do something like this:
$(document).on('ready readyAgain', function() {
// do stuff
});
// At some other point in time, just trigger readyAgain
$(document).trigger('readyAgain');
$(document).on('ready') has been deprecated in jQuery 1.8 according to documentation. An alternative method is as follows:
function myReadyFunction(){}
$(myReadyFunction);
// at some other point, just call your function whenever needed:
myReadyFunction($);