I am using a tabscript, which doesn't have a success handler, after it loaded the wanted page into the opened tab.
Now I want to edit the content on the client side, after the element was loaded, which would be usually done in an asynchronous function - but due to the fact that the tabscript I am using doesn't have an success handler this approach doesn't work.
This is a working solution, but it's way to slow and could end in an endless loop:
open_URL_in_tab();
while(true){
if($('#part_of_loaded_page'){
$('#part_of_loaded_page').editContent();
break
}
}
Thanks for your advice :)