Set timeout for reloading a page using the script in Magento 2

 require(['jquery', 'jquery/ui'],function($) {
        $(document).on('click', ".paid-li", function(){
            setTimeout(function () {
                location.reload(true);
            }, 1000);
        });
    });

Leave a comment

Your email address will not be published. Required fields are marked *