Run process during the loader

Again it’s blurry. If it’s a built-in preloader that gets stuck right after the application is initialized after loading it in some process, then you should create a separate loader, To make it unlikely that the application is hanging, check that the execution time of the process does not exceed the budget of the frame

or dig in the direction of the custom loader.