I find myself doing this a lot:
window.onload = function(){
$.get("http://example.com/example.html", function(data) {
$('#contentHere').html(data);
setTimeout("javaScriptClass.init()", 200);
});
}
But setTimeout seems a bit hacky (and 200ms is already over three times the attention span of the average user :). What's the best alternative?
EDIT
javaScriptClass.init() acts on DOM objects from what is loaded in the ajax call