Integrate a loading script before playcanvas splash screen


I have a script that loads some text from an external url. This text should show up on the playcanvas splash screen.
That means the script should finish loading the data before anything playcanvas related is starting to load.
Any idea? I probably have to modify the generated index.html in order to delay the playcanvas app loading?


Hi @SteOberg

You could set your script loading type to “Before Engine”.

Here is an example

EDIT: sorry ignore me that isn’t going to work as text loading complete can still happen after the loading screen has started.

Thank you anyway :slight_smile:

I remembered that you can hook the app.preload(callback) function so I updated the example

Now the text is loaded before the preload starts.

Awesome, thanks so much!