[Solved] Why my buttons are reacting slowly when I use “hidden”?


You are not hiding your button on click, you are using setTimeout(granjero, 1000);

The if is only called every seconds, so it will only hide if the granjero called.

3

solved Why my buttons are reacting slowly when I use “hidden”?