0

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

2
  • check this --- magento.stackexchange.com/questions/220323/… Commented Apr 28, 2020 at 12:40
  • Let me know how to implement below code as per suggested link hideLoader: function() { //your code here }, Commented Apr 28, 2020 at 12:59

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.