I have used the following script in a .phtml file
require([
'jquery'
], function ($) {
$('#update-shipping-method-submit').trigger('click');
});
My issue is after loading of page is keeps on clicking & reloading, I want to click this id only once after page load.