Where to initialize an app?

Hello. I have to initialize some stuff that takes a bit of time.
Can it be done behind the scenes when the splashscreen is shown?
Where should i do this initialization?

initialize your stuff inside

$ionicPlatform.ready(function() {

}