deferred process for the executeWhenSceneIsReady() function