Delay in Digital ON/OFF switches

This is pretty much the same thing from over here Arduino Yun - Generic Digital Output issues - #2 by adam

Are you using a wireless connection? Using a wired connection can help reduce the frequency. Also refreshing the page right after you click with refresh the button value and allow you to click it again.