Thank you for the feedback! Yes it is indeed a weird bug. The game loop works in editor but when built for WebGL, it produces this bug.