I am waiting for the document.ready event in order to do something on my page.
Alas some other script, which I cannot change, has not worked its magic yet once my script
You could trigger some event once you added the class.
Example:
$('#ele').addClass('theClass'); $(document).trigger('classGiven') $(document).bind('classGiven',function(){ //do what you need });