If you reload with the resize event of the window, you will fall into the phenomenon of repeating reload forever.
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!
Alle svar (1)
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.