dev: hide loading overlay on loadComplete() instead of init()#44
dev: hide loading overlay on loadComplete() instead of init()#44The64thRealm wants to merge 1 commit into
Conversation
The `wavedash dev` init gate polled window.Wavedash.initialized, which is only set by Wavedash.init(). Both prod loaders (the play embed spinner and the mainsite GameSessionFrame loader) instead key off loadComplete() / gameLoaded, which the engine default entrypoints call automatically. A Godot/Unity game that never calls init() therefore spun forever under `wavedash dev` while clearing fine on the site. Gate the overlay on window.Wavedash.gameLoaded for parity with prod, and update the 10s timeout message to reference loadComplete(). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Claude finished @The64thRealm's task in 1m 38s —— View job Code Review —
|
The
wavedash devinit gate polled window.Wavedash.initialized, which is only set by Wavedash.init(). Both prod loaders (the play embed spinner and the mainsite GameSessionFrame loader) instead key off loadComplete() / gameLoaded, which the engine default entrypoints call automatically. A Godot/Unity game that never calls init() therefore spun forever underwavedash devwhile clearing fine on the site.Gate the overlay on window.Wavedash.gameLoaded for parity with prod, and update the 10s timeout message to reference loadComplete().
I tested this and it doesn't hang with a godot project that doesn't call init.