Init() js code from a theme

Hi

I have integrated a theme in my meteor project.

The functions only work once I type in the console « App.init() »

I have tried putting this line in Meteor.startup(), in Template.onRendered and a few other techniques but no one worked properly.

What is the best practice to init my app when the DOM is ready?

Many thanks

Michael