Describe the bug
So the game apparently tries to pre-load every single resource in the game including all of the audio before starting. This is pretty much why some computers, and especially mobile phones, struggle to start the game, because websites on phones just crash when the amount of memory stored is around over 500 KB, while this game requires nearly 5 million KB to even start.
To Reproduce
Just open Task Manager and see the RAM. You can compare the RAM with this official game made by TalkWeb: https://pvz-oe.ct8.pl/ which is also on Cocos Creator. You should also pay attention to how the game handles the loading.
Suggestion
If you still want to load the graphics at the start then it's fine, but for the audio you should really consider. Only load the audio/music when necessary (like when you open a map or game mode or a level), and only store a limited amount of music/audio in memory at a time. From my experience it's best to store at most 2 songs and 30 sound effects at a time in memory, since the game uses Web Audio so it takes a lot more space in memory compared to HTML5 Audio. Cocos should already have a built-in method to remove audio from memory (it's a process called "unloading" the audio).
Describe the bug So the game apparently tries to pre-load every single resource in the game including all of the audio before starting. This is pretty much why some computers, and especially mobile phones, struggle to start the game, because websites on phones just crash when the amount of memory stored is around over 500 KB, while this game requires nearly 5 million KB to even start.
To Reproduce Just open Task Manager and see the RAM. You can compare the RAM with this official game made by TalkWeb: https://pvz-oe.ct8.pl/ which is also on Cocos Creator. You should also pay attention to how the game handles the loading.
Suggestion If you still want to load the graphics at the start then it's fine, but for the audio you should really consider. Only load the audio/music when necessary (like when you open a map or game mode or a level), and only store a limited amount of music/audio in memory at a time. From my experience it's best to store at most 2 songs and 30 sound effects at a time in memory, since the game uses Web Audio so it takes a lot more space in memory compared to HTML5 Audio. Cocos should already have a built-in method to remove audio from memory (it's a process called "unloading" the audio).