1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-03-02 03:39:21 +00:00

Multiple improvements to improve page load time

This commit is contained in:
tobspr
2020-05-19 11:24:51 +02:00
parent ab25f4751d
commit 1056fe389d
9 changed files with 16 additions and 16 deletions

View File

@@ -185,7 +185,6 @@ export class SoundImplBrowser extends SoundInterface {
keys.forEach(key => {
this.sounds[key] = new WrappedSoundInstance(this.sfxHandle, key);
});
console.log(this.sounds);
for (const musicKey in MUSIC) {
const musicPath = MUSIC[musicKey];
const music = new this.musicClass(musicKey, musicPath);

View File

@@ -157,7 +157,8 @@ export class PreloadState extends GameState {
if (G_IS_DEV) {
return Promise.resolve();
}
return waitNextFrame();
return Promise.resolve();
// return waitNextFrame();
}
showFailMessage(text) {