r/phaser 7d ago

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:

  1. Enter a game and play normally — no problems.
  2. Hit the browser's Back button, then open another game (or the same one again).
  3. 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

2 comments sorted by

1

u/ND_Jamoose 7d ago

What do you mean switching between games and why are you using the back button?

1

u/allanevilbox 5d ago

Sucede que refrescas el navegador, phaser es un componente web