Buscar en Ayuda

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

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

  • 1 respuesta
  • 0 tienen este problema
  • 10 visitas
  • Última respuesta de 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!

Todas las respuestas (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.