There is no callback function for .loadPage. However, you can bind the pageload event to run the required script.
$( document ).bind( "pageload", function( event, data ){
You can check out jQuery Mobile for full details of this event. Also, if you use the much more common .changePage method, you can use the "pageshow" or "pagebeforeshow" page event, depending on the type of script that you will use.
source share