Every website you visit installs trackers onto your computer and slows it down subtly. These are called cookies and cached data, which work to track your activity if you regularly visit the same site.
A sure-fire way to prevent your Mac from slowing down and avoid errors like "Your startup disk is almost full" is to ...