搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

How do I stop Firefox for Android automatically refreshing pages?

  • 1 回覆
  • 7 有這個問題
  • 2 次檢視
  • 最近回覆由 Ed

more options

Firefox: 23.0 Android: 4.1.2 Every time I switch to another app and the switch back to Firefox it reloads the page I was on. Which 1) loses the place where I was reading, and 2) loses the page entirely because if I've moved to an area without a signal. I've tried the about:config; accessibility.blockautorefresh: false recommended for the PC version of Firefox, but it doesn't seem to have an effect. The other suggested fix for the PC version, the RefreshBlocker add-on, doesn't have a version that works on Android.

Firefox: 23.0 Android: 4.1.2 Every time I switch to another app and the switch back to Firefox it reloads the page I was on. Which 1) loses the place where I was reading, and 2) loses the page entirely because if I've moved to an area without a signal. I've tried the about:config; accessibility.blockautorefresh: false recommended for the PC version of Firefox, but it doesn't seem to have an effect. The other suggested fix for the PC version, the RefreshBlocker add-on, doesn't have a version that works on Android.

所有回覆 (1)

more options

Hello,

Unfortunately this is Android's decision rather than Firefox's. When an Android app is in the background it's information will be stored in RAM. If you want to return to that app the information will be restored (almost instantly) from RAM.

However the problem you describe arises when Android decides that it needs the RAM for something else (i.e. another app). When that happens the information about Firefox is dumped out of RAM and into cache on the phone's storage. This is a much slower type of storage and so the time taken to restore it when you return to Firefox is much longer.

The only way of preventing this from happening would be to not use any demanding applications when Firefox is in the background.

You can also investigate what is using up most of your phone's RAM. I found that the stock Touchwiz launcher on my Galaxy SIII was using loads of RAM. I replaced it with the Apex launcher which uses much less RAM. This leaves more space in RAM for my apps and so the apps in the background are less likely to get dumped into cache. It does still happen though. That is just how android works.

See here for more info: http://android.stackexchange.com/questions/29466/how-to-force-browsers-not-to-reload-recently-seen-page-after-resume

The other option (not cheap!) of course is to get a phone with more RAM. The top end android phones now tend to come with 2GB of RAM and I expect we will see 4GB in the near future.

I hope that helps.

由 Ed 於 修改