Refactored asynchronous loading mode logic