How can I know when everything is loaded and I can access all objects? (specifically, planets).
Document being ready is not enough, it's ready before planetarium loading is completed, so console.log("planetarium.planets", planetarium.planets); will result in "undefined". (being planetarium = S.virtualsky)