Welcome to Android Central! Does this only happen with your home network? Try checking to see if the wi-fi channel your router is using is too congested, using an app like Wi-fi Analyzer. If it is pretty congested, log into your router's settings from your desktop browser (see your router manual for instructions how), and change the router's wi-fi channel to a less congested one.