Let’s say I have a package C and I want to call some method from package A OR B based on the fact which one has been loaded. My package DOES NOT import neither package A nor B but they may or may not be imported with some other package.
For example, I want to check whether either Iron.Router or FlowRouter has been loaded and act accordingly, for example - add a new route.
Also, I need to call certain methods BEFORE the page loads (Meteor.startup() is too late).
Ideally, I’d like to do that check right upon all packages have been loaded but before any rendering has been started.