I have one jquery method and i used call that method on click of a button . So in that code i have one line \" $(\"#loadingMessage\").css(\'padding-top\',\'6%\');
$(\"#loadingMessage\").css(\'padding-top\',\'6%\');
you can use js closure to slove the question.
function once(func) { let isExeced = false; return function(...arg) { if (isExeced) return void 0; isExeced = true; func.apply(null, arg) } }