}); //insert all your ajax callback code here. //Which will run only after page is fully loaded in background. }); }); });