Since the checkout page is loaded asynchronously, I am not able to call the js script after entire page is loaded.I tried using below code
require(['jquery'],function($){
$(document).ajaxComplete(function(){
if($('#checkout-loader').length == 0)
{
alert("Completed Loading");
}
})
})
But the above code is called twice after loader is remove.Please suggest me how can i implement after all the elements are loaded