Pages have to refresh because there is no more room left in the RAM. The RAM keeps the pages open so you can easily switch back and forth, but when other apps and webpages are open in the background, the pages must refresh. So to answer your question, no you can't prevent this as its a hardware limitation.