Reload page when all ajax tasks have completed