I've researched other threads and am just confused.
Situation: I'm supplying a generic jQuery plugin that loads the div the user specifies dynamically via AJAX. Everything works fine, but on e.g. one user's page, there is a piece of JS that is not called, because the "ready" event is not refired.
The usual situation will be that the user's other jQuery stuff will be placed after jQuery(document).ready.
I've just tested calling:
$(document).trigger('ready');
manually - it has no effects at all, as I presume that "ready" is called only once and only once.
What is the proper way to handle it? (it would be great to provide the most generic solution possible)
I'd love to do something like suggested in this thread:
Trigger $document.ready (so AJAX code I can't modify is executed)
But I think that readyList is now private and can't be manipulated directly anymore?
It's worth mentioning, that the plugin I'm providing supplies a callback functionality for the user. Of course, (s)he could place post-loading handling JS code in there.
Thanks in advance and kind regards