為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

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

了解更多

If you reload with the resize event of the window, you will fall into the phenomenon of repeating reload forever.

  • 1 回覆
  • 0 有這個問題
  • 10 次檢視
  • 最近回覆由 Paul

more options

Firefox for Android has a bug-like phenomenon that you can't see in other web browsers, Edge, Chrome, Opera, or Firefox for Win and Linux. This phenomenon occurs in Firefox for Android regardless of whether "desktop site" is "on" or "off" (*1).

  • 1: Not tested with browsers other than the above. I haven't tried Firefox for iOS either.

The phenomenon is a bug that if you reload in the resize event processing of the window, it will be reloaded permanently until you stop processing or close the browser. A simple code like the one below does this:

<script defer> window. addEventListener( "resize", () => { // The result is the same even if it is controlled by flags, etc. location.reload(); }, false ); </script>

RESIZE & RELOAD

Please improve!

Firefox for Android has a bug-like phenomenon that you can't see in other web browsers, Edge, Chrome, Opera, or Firefox for Win and Linux. This phenomenon occurs in Firefox for Android regardless of whether "desktop site" is "on" or "off" (*1). *1: Not tested with browsers other than the above. I haven't tried Firefox for iOS either. The phenomenon is a bug that if you reload in the resize event processing of the window, it will be reloaded permanently until you stop processing or close the browser. A simple code like the one below does this: <html> <head> <script defer> window. addEventListener( "resize", () => { // The result is the same even if it is controlled by flags, etc. location.reload(); }, false ); </script> </head> <body> <h1>RESIZE & RELOAD</h1> </body> </html> Please improve!

所有回覆 (1)

more options

Hi,

The people who answer questions here, for the most part, are other users volunteering their time (like me), not Mozilla employees or developers. If you want to leave feedback for developers, you can go to the Firefox Help menu and select Share ideas and feedback…. Alternatively, you can use this link. Your feedback gets collected by a team of people who read it and gather data about the most common issues.

You can also file a bug report or feature request. See File a bug report or feature request for Mozilla products for details.