How to go about connecting two modules

I have two modules, ones a module with functions for a loading screen and another is a one with functions for the main menu, both client sided. I placed the two of them under a single handler module but I’m not sure how I’ll be able to detect when the loading part ends to initiate the main menu functions if that makes sense. Thanks in advance