Reputation: 3489
Let's say i've a div with several html info and structures and when i convert it to a dialog with jquery $("#infodata).dialog(...);
it takes several seconds to be showed.
So, it's there a way or method that can be implemented to know when jquery finished rendering the dialog?
P.D : there's no ajax request, the html is still there but with display:none.
Thanks.
Upvotes: 0
Views: 257
Reputation: 64725
You could chain triggering an event on to the end of it, then you get
$("#infodata).dialog(...).closest('body').trigger('dialogueLoaded');
$('body').on('dialogueLoaded', function() { doOtherStuff() });
Upvotes: 1