Loading screen based on assets loaded

Hi…, I want to have one image to be displayed for around 6 seconds before the loading bar appears in the game.Then after the loading bar completes it progress it should hide the splash screen. How can I do it.I used below code but seems to execute like before the preload started logs . it displays preload in progress & stuck in loading since showSplash() is not called due to setTimeout.
Project Link : PlayCanvas 3D HTML5 Game Engine

Thank you

You could perhaps delay the splash screen for 6 seconds, and also ‘preload:progress’ and ‘preload:progress’ callback functions for 6 seconds like this.