Photo Credit: Courtesy of 3DStockPhoto (
wifi image)
Go to Settings, Wi-Fi, (menu button) advanced settings and then select All the time on the option use Wi-Fi on suspension. Check your device setting... You your device is on power saving mode then this can happen as the more optimized mode switch off wifi when not in use.