I’ve often had to fix slow internet connections. This troubleshooting guide is a good start.
I can confirm that wi-fi is often the culprit.
Another thing to look for is slow performance from the site you are connecting to. This happens surprisingly often. Try an independent speed test site like Speedtest.