Change the Black background loading screen to background image (Phaser)

I don’t know exactly what you want but examples/v3/view/loader/scene-payload/scene-files-payload shows how to load an image early. In that example you could add in preload()

const img = this.add.image(0, 0, 'sonic');

because the 'sonic' texture was already loaded.

Change the CDN script to https://cdn.jsdelivr.net/npm/phaser@3.55.2/dist/phaser.js.