Skip to content

Fix loading screen for default bevy app setup #143

@TimJentzsch

Description

@TimJentzsch

The loading screen with the default index.html we serve doesn't work for the default app setup, it isn't removed from the webpage.
It currently assumes that the canvas #bevy is used to create the app, but this needs to be configured explicitly in the Bevy app (as it was done in the bevy_quickstart template).

However, the default index.html should work with as little adjustments to the app as possible.

Therefore, we shouldn't assume a specific ID of the canvas. Instead, we can maybe observe when a new canvas element is spawned and use that event to remove the loading screen.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-RunRelated to the bevy run commandC-BugA bug in the program

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions