Is it possible to manually refire a function that has been assigned to document's onready event?
I know this is an awkward question, and it's kinda difficult to explain the situation here, but please suppose we have
$(document).ready(function() {
console.log('Hello World!');
}
Is there a way to manually trigger this event somehow somewhere in the page? like following
<script type="text/javascript">
$(document).trigger('ready');
</script>
But this doesn't work unfortunately. Any suggestions?