smooth reloading the scene

Hello,
I’m trying to reload the same scene when the game ends. Doing so there is a black screen for fraction of seconds, which I didn’t want. So I’m using cc.TransitionFade but a black screen appears when the scene is reloaded.
code:
var scene = new HomeScene();
cc.director.runScene( cc.TransitionFade.create(1, scene) );
The cocos version I’m using is 3.13 js.

Thank you