javascript - Invoking DOM Ready manually -


is possible invoke dom ready manually after first dom ready executed, like:

$(document).ready(function() {     alert('alohaaa!'); });  $(document).ready(); 

no, not event. can this:

$(document).on("mycustomevent", function() {   alert("alohaa!"); }); 

and then, whenever needed:

$(document).trigger("mycustomevent"); 

Comments