Web connection - XFinity

When I go online with xfinity to a web site or my email every so often it drops off line and a pop-up appears - "Recover page" - that I have to click on to be restored to where I was. What is causing that and how can it be corrected?