I'm trying to disable click on the button on the page before the page fully loads. I've tried the code below, which should active the click for a particular element when the page is loaded:
<script>
$(document).ready(function() {
$("div#wc-proceed-to-checkout").click(function () {
launchAction();
});
});
</script>
Alternative solution - disable click for the whole page until the page fully loads.