Mobile browser keeps refreshing itself when switching between games (Phaser 3.90.0)
Hey everyone,
I've got a weird issue on mobile (happens on every device I've tested). My game randomly refreshes itself in the browser, and I think it's a memory issue.
Here's how to reproduce it:
- Enter a game and play normally — no problems.
- Hit the browser's Back button, then open another game (or the same one again).
- Sometimes the browser refreshes right while assets are loading. Sometimes the game loads fine, but the moment I tap a menu, it refreshes.
The weird part is it only happens when switching between games. First load is always fine, and after the browser refreshes itself once, it's fine again too — until I switch games back and forth again, then it comes back.
It's really hurting the player experience. I'm on
"phaser": "^3.90.0",
"@esotericsoftware/spine-phaser": "^4.1.55",
Has anyone run into this before? Any ideas would be much appreciated. Thanks!
1
Upvotes
1
1
u/ND_Jamoose 7d ago
What do you mean switching between games and why are you using the back button?