So I have a main menu with a button "Play". When the player clicks Play the action "Go to Layout: Game Screen" is fired. It happens instaneously in PC. But when exported to Android using CocoonJS, it takes about 3 seconds after touching "Play" to change the layout to the Game Screen. Why is this happening? How do I fix it?
It also happens when the player dies and touches "Try Again", it takes about 3 seconds after touching it for the game to go to the layout "Game".
I thought maybe the "on start of layout" of the layout "Game Screen" is causing the delay. But I'm not doing much at start of the layout. I'm just playing a Sound, setting local variables to WebStorage keys and restoring some variables.