[Solved] Show button only if Javascript loads


Use a function and initialize it at the end of your script and keep the DOM as @AnoopJoshi suggested

<button id = "button1" style="display:none" >Click me!</button>

and script would be

function init(){ 
    document.getElementById("button1").style.display = 'block';
}

init();

solved Show button only if Javascript loads